How are this() and super() used with constructors?
Answer Posted / ranganathkini
this() - is used to invoke one constructor from another
constructor.
super() - is used to invoke the super class's constructor
from the subclass's constructor
| Is This Answer Correct ? | 21 Yes | 2 No |
Post New Answer View All Answers
How do you define a singleton class?
What are the different types of garbage collectors in java?
What is return null in java?
How do you remove spaces in java?
What does jenkins do?
Can we extend a class with private constructor?
What exceptions occur during serialization?
What are disadvantages of java?
What do you understand by java virtual machine?
What is the formula to calculate percentage?
Explain covariant method overriding in java.
What is a 16 bit word?
What is difference between jdk,jre and jvm?
What are the different types of multitasking?
What are different access specifiers in java? Explain