Home > Back-end >  Define objects to null and don't write what's the difference?
Define objects to null and don't write what's the difference?

Time:11-06

Object the Object and the Object Object=null
What's the difference? My understanding is the same,

CodePudding user response:

You mean like
String a=null a='"'
Is that right, so there will be allocated space, null is not occupy a space

CodePudding user response:

reference 1st floor Zhao Chen response:
you mean such as
String a=null a='"'
Is that right, so there will be allocated space, null is not occupy a space

Said the object, and null String empty String must have difference
  • Related