Array default values for Instance Variables Vs Local Variables
Posted: Sun Oct 10, 2021 12:29 am
Are the array default values for local variables same as those for instance variables?
Asking this as generally Instance Variables get default values whereas Local Variables need to be explicitly initialised.
Hence was curious if the same is true for Array values or Array values would be an exception to this?
Asking this as generally Instance Variables get default values whereas Local Variables need to be explicitly initialised.
Hence was curious if the same is true for Array values or Array values would be an exception to this?