How do I access memory locations in Java?

Can we access memory locations in Java directly or indirectly?

If we try to print the object, it will print the hash code Does hashcode indirectly represent memory location?

For two objects with different memory locations, their hash codes can still be changed

-Abhishek

Solution

No,

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>