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
How do you sort words in java?
What are the main uses of java?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
Why java is considered dynamic?
How do you implement polymorphism in our day to day life?
How do you decide when to use arraylist and linkedlist?
What package is math in java?
Is java still necessary?
What data type is string java?
What is consumer interface?
Which is better 64 bit or 32 bit?
What is the difference between applet and application?
Highest level event class of the event-delegation model?
Why map is used in java?
What is the importance of hashcode() and equals() methods?