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


Please Help Members By Posting Answers For Below Questions

Write a program based on Java script program.

637


What is jdbc api?

527


What is lifetime variable?

519


Give us the name of the list layoutmanagers in java?

514


What is a prefix function.write down a code to compute prefix function.

530






What are selection structures?

527


Explain garbage collection in java?

537


What is the escape character in java?

500


Why string is not thread safe?

526


What is private public protected in java?

565


What is the longest unicode character?

687


What is the difference between Error, defect,fault, failure and mistake?

649


When should the method invokelater() be used?

571


What is a dynamic array java?

503


How do you override a method in java?

524