What is the difference between this() and super()?
Answer Posted / abc
this() is used to invoke default constructor of same class
And super() is used to invoke constructor of super class.
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
List the features of java programming language.
What is the range of the short type?
Why do we create threads in java?
When we should use serialization?
What is method reference in java?
Is string is a class in java?
how to create multithreaded program? : Java thread
What is a lambda expression ? What's its use ?
What is main method?
Which one will take more memory: an int or integer?
What is the scope or life time of instance variables?
What is nullpointerexception?
What is the syntax and characteristics of a lambda expression? Explain
Why do we need wrapper class?
What's the purpose of using break in each case of switch statement?