It will call the toString() method of that class, if the method is not present in that class, it will look for toSting() method in super class, if its not there, then it will call Object's class toString() method which would give you the memory location (hexadecimal representation) of that object.
Can you answer this question?
Write Answer1 Answers