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

Is java pass by value or pass by reference?

1028


What mechanism does java use for memory management?

1019


Can a class be a super class and a sub-class at the same time? Give example.

1614


Is a string literal?

1208


Is int primitive data type?

987


Does java initialize arrays to zero?

1089


How to declare an arraylist in java?

1188


Can static methods be inherited?

1101


Using callable statement how can you pass out parameters, explain with example?

1276


What is a two-pass assembler?

1098


What is difference between c++ and java ?

1166


What are wrapped classes in java programming?

1100


Can an abstract class be a final class?

1040


What is the difference between the final method and abstract method?

1114


What is a stringbuffer?

1024