How are this and super used?

Answer Posted / shripal

this() keyword is use to invoke the current class.
while super() keyword is use to invoke super class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of hashmap in java?

549


Does java isempty check for null?

568


What do you mean by local class?

511


What is an example of a boolean?

569


What is scope & storage allocation of global and extern variables? Explain with an example

579






How many threads can java run?

557


Is 0 true or is 1 true?

514


How to create a custom exception?

570


why doesn't java run on all platforms?

567


What is the meaning of 3 dots in java?

680


Why pass by reference is not possible in java?

494


What is the locale class in java programming?

525


What is complexity in java?

521


Does java support function overloading, pointers, structures, unions or linked lists?

605


What is the default value of float and double datatype in java?

532