How are this() and super() used with constructors?
Answer Posted / ritesh kesharwani
this refer to constructor under whose context the behavior
is called.
and super always used to invoke the argument and no argument
constructor of the super type and if super is used under the
constructors it should be the first argument.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Are primitives objects?
Is string serializable in java?
What are the java ide's? Explain
Can we have two methods in a class with the same name?
What does @override mean?
how to run ecllipse with jettyserver for windows environment using batch file
Difference between linkedlist and arraylist.
Does every java program need a main?
What is contract between hashcode and equal method?
Define how objects are stored in java?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
How static variable work in java?
What is the syntax and characteristics of a lambda expression?
What is multi-catch block in java?
What are peerless components in java programming?