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
Can the interface be final?
What is meant by class?
What is a return in java?
Is java written in c?
what is the difference between process and thread? : Java thread
How many digits can a float hold?
How many digits is int32?
What is n in java?
What is void class in java?
What is the use of singleton?
What are different types of multitasking?
Does java arraylist maintain insertion order?
What is ide with example?
Explain the meaning of java applet.
Can we define private and protected modifiers for the members in interfaces?