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

Why deletion in linkedlist is fast than arraylist?

1075


why we use merge option in hybernate pls give a ex snippet

1975


What is the use of string and stringbuffer?

967


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2084


What state does a thread enter when it terminates its processing in java programming?

1020


How to create com object in Java?

1057


How many threads can java run?

1098


State some advantages of java?

1208


What are different ways of object creation in java ?

1063


What does indexof return in java?

975


What is difference between an object and a class?

1109


What is the difference between checked exception and unchecked exception?

1002


Explain different forms of polymorphism?

1128


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

11151


Why java uses the concept of the string literal?

1045