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
How many ways can you break a singleton class in java?
What is the difference between compiler and jvm?
What are advantages of using Java?s layout managers than windowing systems?
What is an interface in java? Explain
What is the benefit of inner / nested classes ?
What data type is string java?
What is the purpose of lambda expressions?
Does java have extension methods?
What is java util?
What is assembly used for?
what is mutual exclusion? : Java thread
Name component subclasses that support painting in java programming?
Is it possible to override the main method?
In java, how many ways you can take input from the console?
How do I run java on windows?