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 use of volatile in java?
When is the garbage collection used in Java?
How many bits is a char?
Is ruby built on java?
Explain garbage collection in java?
Is java call by value?
Why are generics used?
Write a program to print the pattern given below
How do you create a null object?
What are design patterns and please explain?
Write a program to find maximum and minimum number in array?
Is static a keyword in java?
Can a class extend 2 classes in java?
What is difference between calling start() and run() method of thread?
Can we clone singleton object?