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 / raja

It Works fine with out any Exceptions,because in java each
and every class is inherited from the object class indirectly...

public class consex
{
public consex(String a)
{
super();

System.out.println(a);
}
public static void main(String dd[])
{

consex c=new consex("raja");

}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When parseint method can be used?

890


What initialize variables?

945


What is the difference between superclass and subclass?

1080


what is aggregation in java?

940


What is parameter example?

958


What are keywords in java?

949


What does pointer mean?

973


Why a dead thread occurs?

932


What is thread safe java?

866


What is the difference between synchronized and synchronized block?

1001


What is multiple inheritance? Is it supported by java?

914


What is thread safe singleton?

890


What is the list interface in java programming?

1034


What does \ mean in regex?

1106


Explain the features of java?

965