Difference between this(), super()?
Answer Posted / selvan
this & super is a keyword.
"this" is used to invoke a constructor of a same class,
its pointing the same class object.
"super" is used to invoke a superclass constructor and
accessing the superclass constructor.
| Is This Answer Correct ? | 25 Yes | 3 No |
Post New Answer View All Answers
Does hashset allow duplicates in java?
How to split a string in java?
How is Object Oriented Programming different from Procedure Oriented Programming?
What are the different types of methodologies?
What are the differences between heap and stack memory?
Wha is the output from system.out.println(“hello”+null); ?
What is prefix of a string?
What is the use of beaninfo?
According to java operator precedence, which operator is considered to be with highest precedence?
What is meant by collection in java?
What are java packages?
What is tree node in java?
How do you compare two objects?
What is exception handling in java?
What is a variable declaration?