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 drawbacks for singleton class?
What is java util?
Explain the advantages of packages in java?
What is reverse function?
Is set sorted in java?
Is java good for beginners?
What is the difference between jfc & wfc?
What does function identity () do?
Can we force garbage collector to run ?
How do you know if a value is nan?
Is math an abstract class in java?
How many types of operators are there?
What are the parts of a method?
Can we have static methods in an interface?
How do you sing an Applet ?