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 synchronization and why is it important in java programming?

473


How many bits is a boolean?

628


Explain the public class modifier?

507


What's a method in programming?

551


What is the difference between arraylist and hashset in java?

520






What is type conversion in java?

585


What is final keyword?

648


What are the steps in the jdbc connection?

578


What is array sorting in java?

557


Can string be considered as a keyword?

576


What is final access modifier in java?

596


What do you mean by platform independence?

586


Give an example of call be reference significance.

613


Are maps ordered java?

515


what is object-oriented programming in java?

591