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 language is java written?
What is the difference between preemptive scheduling and time slicing?
Write a function for palindrome and factorial and explain?
What is bigger kb or mb?
What does jre stand for?
How hashmap works in java?
In the below example, how many string objects are created?
Why hashset is used in java?
What is a byte string?
What an i/o filter in java programming?
What is defined as false sharing in the context of multithreading?
Explain the significance of class loaders in bootstrap?
What about member inner classes?
What is meant by structural programming?
What is serialversionuid?