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

What are the differences between stringbuffer and stringbuilder?

997


What are daemon Threads in java?

1128


What is the instance of an object?

1111


What do you understand by weak reference?

956


What are the main uses of this keyword?

996


Does set allows null in java?

907


What is classpath?

955


Why java is said to be pass-by-value ?

981


what is the swingutilities.invokelater(runnable) method for? : Java thread

991


What is the difference between numeric and integer?

949


What is an example of declaration?

946


Why put method is used?

962


Difference between stack and queue?

1014


Explain the difference between the public, private, final, protected, and default modifiers?

984


what is the difference between the methods sleep() and wait()? : Java thread

906