Is it possible that we can access memory location in Java directly or indirectly?
If we tries to print a object, it will print hashcode. Does hashcode signify indire
You can read/write memory addresses if some API is provided to do it. On the Sun/Oracle JRE sun.misc.Unsafe allows you to do this, although intentionally you have to go through hoops to get hold of an instance.
sun.misc.Unsafe