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
Can a class be declared as static?
how can you catch multiple exceptions in java?
What is http client in java?
Is final static java?
How does finally block differ from finalize() method?
What is java jit compilers?
What is your platform?s default character encoding and how to know this?
What happens to the Exception object after handling an exception?
What is == in java?
What are data types in programming?
Differentiate between == and equals().
What is the use of join method?
How can we achieve thread safety in java?
What is r * in math?
Explain the difference between map and flatmap stream operation?