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
Implement a stack with push (), pop() and min() in O(1) time.
Explain the different forms of polymorphism?
What is functional interface in java?
Why do we use variables?
What is wrapper class html?
How do you create a null object?
What are the six ways to use this keyword?
Explain what pure virtual function is?
What types of index data structures can you have in java?
why Java does not support multiple inheritances?
How to declare an arraylist in java?
What is the destroy method?
How to access arraylist elements in java?
Does isempty check for null?
What is the driver class?