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
How does compareto work in java?
Is string a wrapper class?
What is the default access specifier for variables and methods of a class?
What is the final blank variable?
Is overriding possible in java?
What is super?
What is a boolean used for?
What is an interface in java?
What is static in java?
What is instanceof keyword?
What is the main purpose of java?
What is a java lambda expression?
What is mean by encoding?
How do you calculate square roots?
What is string manipulation?