What is the difference between this() and super()?

Answer Posted / ajay yadav

super() immediately refers to the base class constructor to
initialize the variable.
this() refers to the current object.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is continuity of a function?

517


Explain how to force the garbage collection in java.

525


What are use cases?

555


What is meant by call by reference?

501


What is getclass () getname () in java?

671






What is the purpose of the runtime class in java programming?

556


What are the differences between heap and stack memory?

542


Can a class have more than one object?

518


Is a case study a method or methodology?

459


Difference between collection, collection and collections in java?

564


Can we instantiate interface in java?

666


Can an abstract class be a final class?

527


What is equlas() and hashcode() contract in java? Where does it used?

600


Why is java called the platform independent programming language?

568


Is cout buffered?

680