Difference between this(), super()?

Answer Posted / selvan

this & super is a keyword.
"this" is used to invoke a constructor of a same class,
its pointing the same class object.

"super" is used to invoke a superclass constructor and
accessing the superclass constructor.

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to convert string to char and vice versa?

513


Explain the importance of throws keyword in java?

565


What are actual parameters?

519


What is Java Annotations?

553


What is a class instance variable?

614






Write a program in java to find the maximum and minimum value node from a circular linked list.

513


Explain when noclassdeffounderror will be raised ?

614


How many bytes is double?

543


Can we return null in java?

638


What is static keyword?

588


Why do we create public static method in java?

575


What is jar?

629


Why do we use string?

571


What does substring mean?

504


Can I uninstall java?

548