+ 4
When an object is passed to System.out.println as an argument it prints some hashcode, what does this hashcode represent?
2 Answers
+ 6
package.class@adress in memory of that object. If you want to print something different for your object you need to override toString() method in class which object belongs