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...

how to call One constructor from another;

Answer Posted / gokul d

just by initializing the class(constructor) in the another
class where it has to be invoked.for eg
class a{
a()
{
}
}
class b
{
b()
{
new a();
}
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of volatile in java?

996


When is the garbage collection used in Java?

1127


How many bits is a char?

921


Is ruby built on java?

897


Explain garbage collection in java?

919


Is java call by value?

1024


Why are generics used?

909


Write a program to print the pattern given below

886


How do you create a null object?

1024


What are design patterns and please explain?

1032


Write a program to find maximum and minimum number in array?

939


Is static a keyword in java?

918


Can a class extend 2 classes in java?

982


What is difference between calling start() and run() method of thread?

1033


Can we clone singleton object?

1008