How are this() and super() used with constructors?
Answer Posted / sunil kishore balla
super() is used to invoke a super class constructor and
this() is used to invoke a constructor of the same class
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is array length?
State the difference between strings and arrays.
What are the java ide’s?
When will we prefer to use set and list in java and why?
How do you create a method in java?
What is a list in java?
What is stack explain?
what is an objects lock and which objects have locks? : Java thread
What are the different approaches to implement a function to generate a random number?
Explain differences between collection api and stream api?
What is a class variable?
Is integer immutable in java?
When a byte datatype is used?
State the main difference between c++ and java?
is there a separate stack for each thread in java? : Java thread