Difference between this(), super()?

Answer Posted / selvan

this & super is a keyword.
"this" is used to invoke a constructor of a same class,
its pointing the same class object.

"super" is used to invoke a superclass constructor and
accessing the superclass constructor.

Is This Answer Correct ?    25 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you compare two strings lexicographically?

531


Why do we use return statement?

533


Can we convert list to set in java?

503


Write an algorithm for quick sort?

606


What is high level language in computer?

526






what is encapsulation in java? Explain

657


How many bits is size_t?

536


What is byte value?

547


What is the common usage of serialization?

565


Will the jvm load the package twice at runtime?

563


What restrictions are placed on method overloading in java programming?

561


What is a final class in java?

537


What is string data?

547


Can a final variable be initialized in constructor?

480


What is mnemonic code?

526