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 the interruptible method gets implemented?

957


What is set string?

1154


Can we create object of inner class in java?

932


When we should use serialization?

1004


Which one will take more memory: an int or integer?

1211


what is object slice?

2061


What is difference between length and length() method in java ?

981


Write a program in java to create a doubly linked list containing n nodes.

937


What is prefix of a string?

1017


How objects of a class are created if no constructor is defined in the class?

1051


How many times finalize method will be invoked? Who invokes finalize() method in java?

1005


How do you identify if jvm is 32-bit or 64-bit from java program?

951


How big is a 64 bit float?

1017


Explain the significance of listiterator.

1082


What is public static void main?

1085