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

Explain 5 io best practices?

1027


What does the “static” keyword mean? Can you override private or static method in java?

1086


What is method in java ?

1072


Can we have more than one package statement in the source file?

1048


Is char a method in java?

1058


What is the point of polymorphism java?

1002


What is double checked locking in singleton?

1046


Why wait and notify methods are declared in object class?

1029


How do you print array in java?

984


What is return keyword in java?

1052


What do you understand by looping in java? Explain the different types of loops.

1043


What is static and final keyword in java?

1017


What is the difference between hashmap and hashtable? What is an interface?

1152


What is the use of string and stringbuffer?

977


Mention some features of java?

952