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
Explain 5 io best practices?
What does the “static” keyword mean? Can you override private or static method in java?
What is method in java ?
Can we have more than one package statement in the source file?
Is char a method in java?
What is the point of polymorphism java?
What is double checked locking in singleton?
Why wait and notify methods are declared in object class?
How do you print array in java?
What is return keyword in java?
What do you understand by looping in java? Explain the different types of loops.
What is static and final keyword in java?
What is the difference between hashmap and hashtable? What is an interface?
What is the use of string and stringbuffer?
Mention some features of java?