Hi guys ,
Assume the following is my program, is there a way to see how the memory is being allocated by the java program ? How do I use jconsole to find out where in main memory that Integer i = 10 is being saved?
public class IntegerCmp{
public static void main(String [] dummy){
Integer i = 10;
Integer j = 11;
Integer k = ++i;
System.out.println("K == i ?" + (k == i));
System.out.println("k.equals(j): "+k.equals(j));
}
}
Thanks,
Varun Krishna. P