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

What is meant by object?

1002


What is gui programming?

1030


What is meant by data hiding in java?

1150


What is the use of join method?

1026


Explain throw keyword in java?

1043


What is difference between equal and == in java?

952


How can a gui component handle its own events?

1110


2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?

2279


How do you reverse a string in java without using string buffer?

1091


Is boolean a wrapper class in java?

1055


What is the range of the short type?

1021


What is diamond operator in java?

949


How do you use parseint in java?

979


What is the difference between hashmap and hashtable? What is an interface?

1162


How does enum work in java?

1015