I want to know what exactly the output is when I do the following.
class Data { int a = 5; } class Main { public static void main(String[] args) { d
The Javadoc for hashCode() and toString() in the Object class should be able to clarify this for you.
Object