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
What is the difference between iterator and enumeration ?
What is the do while loop syntax?
What is the difference between normal report & matrix report?
Will set allow duplicates in java?
Is null or empty java?
What is the difference between call by reference and call by pointer?
If you are given the name of the function at run time how will you invoke the function?
What is unsigned char?
What is square root in java?
What are the main differences between notify and notifyAll in Java?
What are green threads in java?
How to create an immutable class?
What is the use of accept () method in java?
What is a programming object?
What is class??