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 8 data types in java?

993


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

992


Why doesn't the java library use a randomized version of quicksort?

993


What are synchronized methods and synchronized statements in java programming?

1021


What is nextint java?

1063


Explain parallel processing in java8?

1251


Can a class be declared as static?

1171


How big is a pointer?

1028


What is an example of a boolean?

1062


What is equals method in java?

1037


Difference between final and effectively final ?

1107


What is the difference between static class and normal class?

1032


How do you reverse a string in java without using string buffer?

1095


How much ram can a 64 bit processor theoretically?

891


What is strings in java?

1042