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

Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2352


What is use of set in java?

1072


What is static keyword in java?

1055


What are the main concepts of oops in java?

1850


What is skeleton and stub?

1159


What is Classloader in Java?

1291


How does queue work in java?

1025


What is jpa specification?

1026


Does java arraylist maintain insertion order?

1048


Can we write a class without main method in java?

998


How many unicode characters are there?

1110


How many types of java are there?

1032


What are inbuilt functions?

1046


what is difference between equals and ==?

1119


What is internal iteration in java se 8?

1255