How are this() and super() used with constructors?
Answer Posted / ritesh kesharwani
this refer to constructor under whose context the behavior
is called.
and super always used to invoke the argument and no argument
constructor of the super type and if super is used under the
constructors it should be the first argument.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is methods and methodology?
What is parsing a string?
Explain notifyall() method of object class ?
What does java edition mean?
What is the size of boolean variable?
describe method overloading
What is xslt in java?
Why main method is called first in java?
what state does a thread enter when it terminates its processing? : Java thread
Can we declare the static variables and methods in an abstract class?
How do you add an element to a set in java?
Which package has light weight components in java programming?
Explain aggregation in java?
Why string is called as immutable?
Is 0 an even number?