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 output of the below java program?
What is java autoboxing?
What is java string pool?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Is null an object in java?
How do you reverse sort in java?
What is collection sort in java?
Explain yield() method in thread class ?
What is the functionability stubs and skeletons?
how would you implement a thread pool? : Java thread
Explain when we should make an instance variable private.
What is the purpose of garbage collection in java, and when is it used?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
State differences between C and Java?
Using callable statement how can you pass out parameters, explain with example?