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
Can we use static class instead of singleton?
what do you mean by classloader in java?
What is fail fast in java?
What happens if an exception is not handled in a program?
Does java initialize arrays to zero?
Can we use this () and super () in a method?
Is null a value?
What is the private method modifier?
Difference between default and protected access specifiers?
What are the features of junit?
Why does java doesnt suuport unsigned values?
Name few java util classes introduced with java 8 ?
java program with complete 4 oops concepts implemented example
How does varargs work in java?
How do you download stubs from Remote place?