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

Difference between this(), super()?

Answer Posted / nikhlesh gupta

this() call one of user define constructor inside another user constructor of the same class such as this(a), this(a,b) & so on.
super() call one of base class constructor inside the derive class constructor such as super(a), super(a,b) & so on.

Is This Answer Correct ?    26 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of default constructor?

1000


Can a class be declared as static?

1170


Why main method is static in java?

1175


What are void pointers?

1304


Explain enumeration in java?

1003


What is lifetime variable?

959


Explain the importance of throws keyword in java?

997


Explain importance of throws keyword in java?

980


What is the null?

1022


How to create packages in java?

948


How do we access static members in java?

1109


Explain parallel processing in java8?

1250


How is java hashmap implemented?

1027


What is a classloader in java?

1018


Write a program to find the greatest of three numbers in java?

1003