T
T
thatscriptkid2014-07-10 11:35:56
Java
thatscriptkid, 2014-07-10 11:35:56

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

1 answer(s)
B
bimeg, 2014-07-10
@thatscriptkid

The heap stores class/object fields and array elements. The rest is not hip.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question