What is the difference between this() and super()?
Answer Posted / gcttcs
Super should be used only in the sub classes and super() is
used to point methods of super class. where as this can be
used in both super & sub classes and this() used to point
methods in the class where it is called.
| Is This Answer Correct ? | 28 Yes | 6 No |
Post New Answer View All Answers
What is a null point?
What is keyword and identifier?
what do you mean by java annotations?
Which types of exceptions are caught at compile time?
What are singleton services?
What is class variable java?
What happens when you add a double value to a string?
What is the difference between == and === javascript?
Differences between C and Java?
State the significance of public, private, protected class?
How do you sort data in java?
What is a substring of a string?
What is the difference between interface & abstract class?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
What are 4 pillers of object orinted programming?