Difference between this(), super()?
Answer Posted / nikhlesh gupta
this() call one of user define constructor inside another user constructor of the same class such as this(a), this(a,b) & so on.
super() call one of base class constructor inside the derive class constructor such as super(a), super(a,b) & so on.
| Is This Answer Correct ? | 26 Yes | 5 No |
Post New Answer View All Answers
Define the term string pool?
Explain scope or life time of local variables in java?
What are the advantages of functions?
What is the difference between hashset and treeset in java?
How to provide security in java
What are the types of java languages?
Is 0 true or false?
What is the purpose of the file class in java programming?
Tell me about different OOPS concepts.
What are inbuilt functions?
What is meant by object oriented programming – oop?
Which is faster call by value or call by reference?
How to change the priority of thread or how to set the priority of thread?
What are some alternatives to inheritance?
Do I need to import java.lang package any time? Why?