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

Describe what happens when an object is created in java ?

1008


How do I write a self declaration?

1109


What about method local inner classes or local inner classes in java?

1056


What is array size in java?

958


what is mutual exclusion? : Java thread

1021


What is a class instance variable?

1123


Difference between Linked list and Queue?

1029


What is the primary benefit of encapsulation?

1085


What is the difference between an inner class and a sub-class?

1013


Can you declare the main method as final?

1015


Why we use methods in java?

993


What is the difference between array list and vector in java?

935


When super keyword is used?

1009


Is singleton class immutable?

965


Explain about the main() method in java?

1105