What is the difference between this() and super()?

Answer Posted / kraja

this() should be first statement in the constructor of the
same class and you cannot call this() in other places

Is This Answer Correct ?    21 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is t type java?

628


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1803


Explain methods specific to list interface?

557


What is difference between java and java ee?

557


Is array a class in java?

505






Can a class be private in java?

545


What is byte value?

557


Write a program in java to create a doubly linked list containing n nodes.

555


Describe the Big-O Notation.

616


How to store image in arraylist in java?

512


Can we execute a program without main?

541


describe synchronization in respect to multithreading? : Java thread

505


What is the purpose of the System class?

583


What programs use java?

474


What is loop in java?

534