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

Why java uses the concept of the string literal?

1056


how come we know the object is no more used in the class?

6464


List down the methods and interfaces of collection class in java.

980


What value is a variable of the string type automatically initialized?

1112


How do you add an arraylist to an array in java?

976


How do you use equal in java?

1072


Can a string be null?

979


What is the use of singleton class?

968


Explain importance of inheritance in java?

1016


Which methods cannot be overridden in java?

986


What is an example of a constant variable?

1080


Can a lock be acquired on a class in java programming?

991


What are the differences between Java 1.0 and Java 2.0?

2266


What are methods in java?

990


Does java list allow null?

986