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
What is multiple inheritance? Is it supported by java?
What is array command?
What do you understand by java virtual machine?
What is the purpose of tostring() method in java?
Which is better stringbuffer or stringbuilder?
What is public static?
What is the difference between a method and a function in alice?
Write a program in java to find the maximum and minimum value node from a circular linked list.
What is a method header?
Can we sort set in java?
What is nested loop? What is dangling else condition in it?
What is finally block?
What is Hierarchy of exception?
How to make a non daemon thread as daemon?
What is data type in java?