How are this() and super() used with constructors?
Answer Posted / bhadresh
this() use to invoke only same class constructor.
super() use to invoke super class constructor.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is constant in programming?
Why java applets are more useful for intranets as compared to internet?
Can a method inside a interface be declared as final?
Why object class is super class for every class in java?
Why 1 is not a prime number?
What is covariant return type?
What is tcp ip in java?
What are the legal operands of the instanceof operator?
Which non-unicode letter characters may be used as the first character of an identifier?
What is the purpose of stub and skeleton?
What is a pattern what is an anti pattern?
Can we change the scope of the overridden method in the subclass?
Difference between serialization and deserialization in java?
Can we use string in switch case in java?
Can we have 2 main methods in java class?