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

What is the difference between this() and super()?

Answer Posted / prabu.b

1)Super() always calling the constructor of immediate
super class, super() must always be the first statements
executed inside a subclass constructor.

2)You cannot use this() and Super() in the same constructor.

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main functionality of the remote reference layer?

1945


What is a line break example?

939


What do you mean by object?

916


Can you override a final method?

983


How do I start learning java?

1007


What is stack class in java?

987


Why do people says “java is robust”?

957


How to calculate the length of a singly linked list in java?

965


what is abstract class in Java?

1072


What are the features in java?

1021


What environment variables are required to be set on a machine in order to run Java programs?

1116


Is java util list serializable?

895


How many ways can an argument be passed to a subroutine and explain them?

966


Can a constructor have different name than a class name in java?

1086


What is the difference between interface & abstract class?

986