I am wondering how memory is allocated in Java.
I have class Duckwith two instance variables int sizeand String name. These variables are initialized. Does the memory save for these variables on the heap at runtime if I do not instantiate this class?
Thanks Gene
source
share