How are this() and super() used with constructors?
Answer Posted / ravikiran(aptech mumbai)
this() is used to call constructors wih in same class where
as super() is used to call the constructors of it's super class
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
What is the advantage of functional interface in java 8?
What is the benefit of using enum to declare a constant?
What is the default value of float and double datatype in java?
How do you identify if jvm is 32-bit or 64-bit from java program?
What is floating data type?
State one difference between a template class and class template.
Difference between notify() method and notifyall() method in java?
Which collection is sorted in java?
Explain about sets?
What is anti pattern in java?
Variables used in a switch statement can be used with which datatypes?
Difference between character constant and string constant in java ?
Is null an object java?
how to convert Java project into Maven ?
What is a final class ?