Difference between this(), super()?
Answer Posted / venki
this can be pointing to current object.
super can be used for accesing super class metods &varibles.
'this &super' are use full for constructers also .
thes two statements defining first satatement of
constructer.'this' is used for accesing current class
constuter.where as super is accessing super class
constructer.
| Is This Answer Correct ? | 56 Yes | 5 No |
Post New Answer View All Answers
Are strings immutable in java?
What is constructor in java ?
What are the new features in java 8? Explain
What are the different types of garbage collectors in java?
What is the difference between a break statement and a continue statement?
What do you mean by access modifier?
Explain about interthread communication and how it takes place in java?
What is one third plus one third as a fraction?
Is void a return type?
How many java versions are there?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What is a method type?
What is the purpose of static keyword in java?
What is a finally block? Is there a case when finally will not execute?
How do you escape in java?