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
Write a program based on Java script program.
What is jdbc api?
What is lifetime variable?
Give us the name of the list layoutmanagers in java?
What is a prefix function.write down a code to compute prefix function.
What are selection structures?
Explain garbage collection in java?
What is the escape character in java?
Why string is not thread safe?
What is private public protected in java?
What is the longest unicode character?
What is the difference between Error, defect,fault, failure and mistake?
When should the method invokelater() be used?
What is a dynamic array java?
How do you override a method in java?