How are this() and super() used with constructors?
Answer Posted / ravikiran(aptech mumbai)
this() is used to call constructors wih in same class where
as super() is used to call the constructors of it's super class
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Why is java called java?
Does the order of public and static declaration matter in main method?
Does java allow overriding static methods ?
Is constructor inherited?
What is callable java?
What is the advantage of preparedstatement over statement?
How do you remove spaces in java?
What is constant in programming?
What is array and arraylist in java?
Can java run on google chrome?
Explain method overloading?
Explain the use of sublass in a java program?
Can we create an object of private class?
What is data member in java?
Differences between C and Java?