What is the difference between this() and super()?
Answer Posted / srinu
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 ? | 6 Yes | 3 No |
Post New Answer View All Answers
What does string mean in java?
What are the ways to instantiate the class class?
Why use string handling in Java?
Why do I need to declare the type of a variable in java?
What is the parse method in java?
Why we cannot override static method?
Is there any case when finally will not be executed?
What is parsing a string?
What is a newline character in java?
Which is bigger float or double?
How hashset works internally in java?
How we create object in copy constructor?
What is the default execution method in java?
What is mean by encoding?
What is default constructors?