Here's Oracles brief operating instructions for jconsole
... but what do you really want/need to know? I can't imagine that a memory address is going to be useful to you. Read More
Yes, that code creates a new String object with the value "hello" and it also creates a new variable called `hello` that contains a reference to the String. The String will be created in the JVM's heap(s) somewhere. The variable may be in the heap (if it is a static … Read More
VisualVM will let you see what objects the VM has stored in its (heap) memory.
But it doesn't give you any access to actual memory locations. It just lists objects according to their class or size or whatever. Read More
Java does not give you direct memory access, that's one of the main reasons they designed the language in the first place, do away with all that messy malloc, calloc, etc. etc. you're stuck with in C.
And no, your program doesn't allocate any memory at all. It requests storage … Read More