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

Which method cannot be overridden in java?

977


Is java free for commercial?

906


Can a final variable be null?

998


What does flagged out mean?

1039


Difference between Linked list and Queue?

1016


Explain public static void main(string args[]) in java.

964


What are the properties of thread?

907


What does exp mean in math?

976


Why generics are used in java?

1012


What is the difference between integer parseint and integer valueof?

992


What is a generic type?

998


What is the instance of an object?

1174


What are keywords in java?

987


How do you convert boolean to boolean?

1134


Can a main method be declared final?

1037