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
What is the method to declare member of a class static?
What is exception in java?
When can you say a graph to be a tree?
Explain the importance of throwable class and its methods?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is string in java with example?
Which is bigger float or double java?
What are the ways to instantiate the class class?
what is thread? What are the high-level thread states? : Java thread
What does the @override annotation do?
Differences between C and Java?
Can we declare a class as abstract without having any abstract method?
What does system out println () do?
What is string [] java?
Is an array a vector?