What is the difference between this() and super()?
Answer Posted / ajay yadav
super() immediately refers to the base class constructor to
initialize the variable.
this() refers to the current object.
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is difference between wait and notify in java?
What are the 3 types of control structures?
Write a program to show whether a graph is a tree or not using adjacency matrix.
What is sorting in java?
what state does a thread enter when it terminates its processing? : Java thread
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What is singleton class and how can we make a class singleton?
What do you mean by checked exceptions?
How to display names of all components in a Container?
What is meant by call by reference?
Explain parallel processing in java8?
Can we split string with in java?
Can we extend private class in java?
Why do we need data structure in java?
Why are the destructors for base class and derived class called in reverse order when the program exits