I have an object and I can do:
System.out.println(o);
Which is the "hidden" method called to get the object description ?
Always toString()
or does it depend from the object type ?
I have an object and I can do:
System.out.println(o);
Which is the "hidden" method called to get the object description ?
Always toString()
or does it depend from the object type ?