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 a constructor what happen if u call super and this in
the same class? i know that it is not possible to call
both in the same one? if we call what will happen?

Answer Posted / agile being

The question clearly specifies "what happen if u _CALL_
super and this in the same class"

By call, probably, they mean:
this(); /*Invoking the constructor*/
super(); /*Invoking the parent class's constructor*/

I think the right answer is that it will raise a compiler
exception. Such a program will not compile.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is finalize method?

1131


What is the difference between import java.util.date and java .util?

1057


When parseint method can be used?

955


What is the main method java?

1037


What is sortedset in java?

1034


What are the concepts of 'OOPS'?

1078


What is an empty class? What functionality does it offer in Java?

1278


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1983


What is the purpose of the enableevents() method in java programming?

1187


How to reverse a string in java?

1084


Does google use java?

974


what is synchronization? : Java thread

1029


What is java console application?

1015


How do you square a number in java?

1057


can any body body expalin best definitions & best real time exaples for opps concepts.

2273