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 ? | 55 Yes | 5 No |
Post New Answer View All Answers
What is synchronization and why is it important in java programming?
How many bits is a boolean?
Explain the public class modifier?
What's a method in programming?
What is the difference between arraylist and hashset in java?
What is type conversion in java?
What is final keyword?
What are the steps in the jdbc connection?
What is array sorting in java?
Can string be considered as a keyword?
What is final access modifier in java?
What do you mean by platform independence?
Give an example of call be reference significance.
Are maps ordered java?
what is object-oriented programming in java?