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
How many types of the indexof method are there for strings?
What is generic class?
What are methods in java?
How do you check if a character in a string is a digit or letter?
What does localhost mean?
Write a program in java to establish a connection between client and server?
Explain Basics of OOP Language in java
Does collectionutils isempty check for null?
How do you override a private method in java?
What are the two main uses of volatile in Java?
Is string a class in java?
What is native method in java?
What's the purpose of static methods and static variables?
What is byte data type?
How do you start a new line in java?