I know Java doesn't support concept of pointers, which actually can provide you address of the variable or an object. But what do you say in this case
A a1 = new A();
System.out.println(a1);
here a1 is one reference variable which points to object of class A. But when I print a1, it prints the address of the object.
So, I mean to ask is when I can get address of the object (that too fully qualified address) in Java also, how it could be safe?
Can somebody clear my concepts on Java is safe. Thanks in advance.