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
That code calls the default toString() implementation of the Object class, that is:
toString()
Object
public String toString() { return getClass().getName() + "@" + Integer.toHexString(hashCode()); }