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 is java console application?
Can singleton class be inherited in java?
Why isn’t there operator overloading?
What is static keyword in java?
What is use of functional interface in java 8? Explain
What is locale?
What do you mean by static variable?
How many bytes is a char in java?
What is the syntax and characteristics of a lambda expression?
What is "this" keyword in java? Explain
Why java is considered dynamic?
If a method is declared as protected, where may the method be accessed in java programming?
I have multiple constructors defined in a class. Is it possible to call a constructor from another constructor’s body?
What is :: operator in java?
How thread scheduler schedule the task?