Difference between this(), super()?

Answer Posted / janet

this() can be used to invoke a constructor of the same
class where as super() can be used to invoke a super class
constructor.

Is This Answer Correct ?    53 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about static nested classes in java?

586


What are advantages of using Java?s layout managers than windowing systems?

1851


describe method overloading

531


Explain the difference between jvm and jre?

554


What are the advantages of arraylist over arrays?

563






Why super is first line in java?

551


What is difference between equal and == in java?

518


Explain the meaning of java applet.

599


Explain the difference between arraylist and linkedlist in java?

482


Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

501


What is prefix of a string?

565


How does enum work in java?

540


How do you clear an arraylist in java?

491


How will you print number in reverse (descending) order in BST.

573


Explain about static imports in java?

595