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 does a void function return?
Is empty .java file name a valid source file name?
What is tcp and udp?
What are the Static and Dynamic Variables? Differentiate them.
What are sets in java?
What do you mean by ordered and sorted in collections in java?
What all methods are used to prevent thread execution ?
What is java abstraction with example?
What is the use of System class?
What is yield () in java?
What is java lang string?
What are the advantages and disadvantages of reference counting in garbage collection?
How to split a string in java?
What is int short for?
What is the java reflection api? Why it’s so important to have?