Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / ranganathkini

this() - is used to invoke one constructor from another
constructor.

super() - is used to invoke the super class's constructor
from the subclass's constructor

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a singleton class?

1081


What are the different types of garbage collectors in java?

1142


What is return null in java?

965


How do you remove spaces in java?

1034


What does jenkins do?

914


Can we extend a class with private constructor?

1010


What exceptions occur during serialization?

1088


What are disadvantages of java?

1000


What do you understand by java virtual machine?

1198


What is the formula to calculate percentage?

1018


Explain covariant method overriding in java.

1107


What is a 16 bit word?

1009


What is difference between jdk,jre and jvm?

1125


What are the different types of multitasking?

1108


What are different access specifiers in java? Explain

1127