Difference between this(), super()?

Answer Posted / ghulam mujtaba

this()can be used invoke to Constructor of the same class
Whereas super() can be used to invoke a super class
Constructor

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between java platform and other platforms?

504


Can an interface be defined inside a class?

515


What is the abstraction?

583


Why java is considered as platform independent?

588


What is a package in java? List down various advantages of packages.

747






When super keyword is used?

587


What does arrays sort do in java?

536


What is the main purpose of serialization in java?

524


What is the basic concepts of OOPS?

681


Which method must be implemented by all threads?

717


What is string data type?

547


Explain about abstract classes in java?

581


Which number is denoted by leading zero in java?

803


Whats the difference between notify() and notifyall()?

564


What do you mean by an object in java?

624