Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get the memory location of an object in java

String answer = "42";

System.out.println("The memory address is " + VM.current().addressOf(answer));
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #memory #location #object #java
ADD COMMENT
Topic
Name
9+2 =