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
Is java pass by value or pass by reference?
What mechanism does java use for memory management?
Can a class be a super class and a sub-class at the same time? Give example.
Is a string literal?
Is int primitive data type?
Does java initialize arrays to zero?
How to declare an arraylist in java?
Can static methods be inherited?
Using callable statement how can you pass out parameters, explain with example?
What is a two-pass assembler?
What is difference between c++ and java ?
What are wrapped classes in java programming?
Can an abstract class be a final class?
What is the difference between the final method and abstract method?
What is a stringbuffer?