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...

In Java, what are this() and super(), and where are you required to use them?

Answer Posted / glibwaresoftsolutions

Super() and this() are special keywords in Java that are used to invoke the constructor. This() and super() must appear as the block's initial line.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many types of Inheritance?

1218


Can a static class have a constructor java?

1042


What is Mutex (Mutual Exclusion Object) ?

1221


How infinite loop is declared?

1064


What is replaceall in java?

1083


How do you escape in java?

1138


Can java hashmap have duplicate keys?

1084


Difference between default and protected access specifiers?

1213


Can a hashset contain duplicates java?

1030


Which package is always imported by default?

1152


Define an abstract class with reference to java.

1057


Explain how hashmap works?

1123


Explain what is encapsulation?

1142


Which class contains a method: cloneable or object?

1100


What is JVM and is it platform independent?

1113