A
asit
when we create an object of class type, memory is allocated in the
heap dynamically and a reference is passed to the class variable.
1>where is that variable created ??What is the scope of that
variable ???
2>As java does not have global scope, the will be no global variable.
So data memory in class programs remains unused. Is that so ???
heap dynamically and a reference is passed to the class variable.
1>where is that variable created ??What is the scope of that
variable ???
2>As java does not have global scope, the will be no global variable.
So data memory in class programs remains unused. Is that so ???