Hmm, thats a tuffy.
I dont think (could be wrong) that it is possible to view the memory address of primitives(int, float,double, char).
You can try System.out.println(myObject) and as long as you have not overridden your toString() method, it always prints out some numbers. Methinks thats the memory address.
Test it out,
class Test{
public static void main(String args[]){
System.out.println(new Object());
}
}
my output was:
java.lang.Object@3f5d07
Hope this helps