Answer the question
In order to leave comments, you need to log in
In what memory area and what data does the JVM (HotSpot) store?
I correctly understood that the stack stores - local variables of methods, references of reference types, primitive types, and together - the value of reference types, the objects themselves ?. And where can class fields be stored? Does it depend on the type of the variable or is it always on the heap? Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question