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

hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1462


EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.

8623


Why for each loop is used?

508


How to solve the problem of generating the unique hash keys with hash function?

1460


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

618






What is the main use of java?

574


What is run time allocation?

579


What is the structure of java?

508


What is a substitution variable?

567


What is an escape character in java?

534


What is the do while loop syntax?

553


What are the 4 versions of java?

561


Can I uninstall java?

553


What is the class in java?

563


I want to print “hello” even before main is executed. How will you acheive that?

659