How are this() and super() used with constructors?

Answer Posted / ravikiran(aptech mumbai)

this() is used to call constructors wih in same class where
as super() is used to call the constructors of it's super class

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of an interface?

647


Difference between vector and arraylist.

670


What is a stringbuilder?

596


What are different exception types exceptions available in java ?

588


What is the difference between int and integer in java?

630






What is function overriding and overloading in java?

686


What is the purpose of the return statement?

637


What are the types of java?

694


What is garbage collection? What is the process that is responsible for doing that in java?

758


Explain polymorphism citing an example.

685


Is double bigger than float?

638


What is :: operator in java?

595


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

669


Explain different states of a thread in java?

689


What is the range of a character variable?

635