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


Please Help Members By Posting Answers For Below Questions

What is the parse method in java?

559


What are some examples of variable costs?

486


Why java is not 100% object-oriented?

824


What do heavy weight components mean in java programming?

519


Justify your answer that you can't define a method inside another method in java, if you can then how?

600






Can you tell me range of byte?

555


When can we say that threads are not lightweight process in java?

588


Why string is not a wrapper class?

640


Is assembly language a low level language?

491


what is the use of bean managed and container managed with example?

1491


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

754


In a container there are 5 components. I want to display all the component names, how will you do that?

1557


What is thread life cycle?

535


What is a lightweight component?

588


What is singleton class in ruby?

555