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 are the differences between path and classpath variables?
What happens if we override private method?
What does 0 mean in boolean?
What is a class component?
What is the difference between this() and super() in java?
What is the purpose of assert keyword used in jdk1.4.x?
How big is a 32 bit integer?
What is the static import?
What is a buffer in computer?
What is the hashcode () and equals () used for?
whatis Home interface and Remoteinterface? with example?
What are the main uses of the super keyword?
Mention some interfaces implemented by linked list in java.
Why is static used?
How do you print array in java?