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

Answer Posted / amarmca84

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

Is This Answer Correct ?    91 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multiple inheritance? Is it supported by java?

518


What is array command?

551


What do you understand by java virtual machine?

700


What is the purpose of tostring() method in java?

545


Which is better stringbuffer or stringbuilder?

521






What is public static?

492


What is the difference between a method and a function in alice?

572


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

509


What is a method header?

542


Can we sort set in java?

531


What is nested loop? What is dangling else condition in it?

569


What is finally block?

561


What is Hierarchy of exception?

639


How to make a non daemon thread as daemon?

539


What is data type in java?

482