how to call One constructor from another;
Answer Posted / talk2sreenivas@gmail.com
. In one constructor, the first statement can be a call on
another constructor in the same class (use keyword this
instead of the class-name) or a call on a constructor of the
superclass (use keyword super instead of the class-name). In
a constructor for a subclass, the first statement must be
either this(…); or super(…); —if not, the call super(); is
automatically inserted for you.
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is abstraction in java?
Is 0 a prime number?
What is a finally block? Is there a case when finally will not execute?
Is main is a keyword?
What all access modifiers are allowed for top class ?
What is the flag in java?
How to invoke external process in java.
Can this keyword be used to refer static members?
What are conditionals and its types?
Explain inner classes ?
How do you override a private method in java?
What is meant by javabeans?
What does you mean in math?
What do you understand by the term polymorphism?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?