Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does null mean in JAVA?
What does null mean in JAVA?
Null means empty and has no meaning. Declaring an object empty means telling the JAVA virtual machine to assign a memory address to the object, and then it can be used. For example:

String str = null

Yes, an object of type String is declared, but it has no specific value, only a str object exists in memory.