How are this and super used?

Answer Posted / sucharitha

this() is used to invoke present class constructor.Super()
is used to invoke super class Constructor.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the destroy method?

590


Who is the owner of java?

535


What is final modifier?

556


Why is java so popular?

635


How do you compare two strings lexicographically?

535






What is constant in programming?

554


What is boolean strategy?

624


What is the purpose of format function?

620


What are the new features in java 8?

568


How do you convert boolean to boolean?

523


What do you mean by global variable?

524


What is data type in computer?

519


Is string a datatype?

550


Give the hierarchy of inputstream and outputstream classes.

608


what is the purpose of the runtime class?

553