The toString() Method

The toString() Method

Override tosting() method is calling when we need to mere mortal to be able to read something meaningful about the objects of our class.Code can call toString() on our object when it wants to read useful details about our object.for the example we have a example :
 public class HardToRead {
public static void main (String [] args) {
HardToRead h = new HardToRead();

Date:2013-03-09 00:00:00

Post Your Answers

User Email:

User Name:

Related scjp1.5 chap8 Links

scjp1.5 chap8 interview questions and answers for experienced and fresher