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 do you use parseint in java?
What is the purpose of file class?
What are decalarations?
What will happen when using pass by reference in java?
What is the difference between path and classpath variables?
What is meant by final class?
What is the final method?
Can we call a non-static method from inside a static method?
What does || || mean in math?
What is tcp and udp?
Can we change the value of static variable?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
What are accessor methods in java?
How would you convert bytes to string?
Can I learn java without any programming experience?