What is the difference between this() and super()?
Answer Posted / prabu.b
1)Super() always calling the constructor of immediate
super class, super() must always be the first statements
executed inside a subclass constructor.
2)You cannot use this() and Super() in the same constructor.
| Is This Answer Correct ? | 23 Yes | 4 No |
Post New Answer View All Answers
If two threads have same priority which thread will be executed first ?
How is java hashmap implemented?
What are the 8 data types in java?
What is dynamic array in java?
State two differences between C and Java.
What is contract between hashcode and equal method?
What does the @override annotation do?
How do you identify if jvm is 32-bit or 64-bit from java program?
What do you understand by copy constructor in java?
Difference between class#getinstance() and new operator ?
What are the features of java?
How does system arraycopy work in java?
Explain the available thread states in a high-level?
What is ternary operator?
What is ordered map in java?