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

How we can skip finally block of exception even if some exception occurs in the exception block in java?

995


Outline the major features of java.

1127


What about instanceof operator in java?

1066


Explain treeset?

1165


State the difference between strings and arrays.

1319


What is object-oriented programming?

1200


Define class?

1126


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

1344


What is the purpose of default constructor?

1035


What is the purpose of a volatile variable?

1103


Explain the significance of listiterator.

1168


Why java doesn’t support multiple inheritances?

1105


Is a case study a method or methodology?

949


What is regex used for?

1042


Write a program to print all permutations of string?

1159