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 / ajay dhingra

It will run fine with no exception here is the example :

public class CheckException extends Thread{
public CheckException(){
super.start();
this.start();
}
@Override
public synchronized void start() {
// TODO Auto-generated method stub
super.start();
}
}

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of the indexof method are there for strings?

1019


Is break statement can be used as labels in java?

1013


How do generics work?

997


define polymorphism in java

1143


What is a substitution variable?

1074


What is the size of boolean variable?

1131


What is a pointer and does java support pointers?

1061


What is difference between class and object in java?

1131


What is a numeric literal?

1142


How do you use parseint in java?

1028


What is polymorphism in java? What are the kinds of polymorphism?

1115


Can you create an object of an abstract class?

1074


Explain the scope or life time of class variables or static variables?

1038


Does substring create a new object?

1048


Where is java located?

1115