Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Difference between this(), super()?

Answers were Sorted based on User's Feedback



Difference between this(), super()?..

Answer / 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 ?    56 Yes 5 No

Difference between this(), super()?..

Answer / janet

this() can be used to invoke a constructor of the same
class where as super() can be used to invoke a super class
constructor.

Is This Answer Correct ?    53 Yes 6 No

Difference between this(), super()?..

Answer / priyanka das

"super" is a keyword used to invoke superclass data members and also superclass member methods,whereas "this" is a keyword used to invoke the current class data member as well as current class member methods.

A super object can be used to retrieve super class members."this' object can be used to invoke only the current class members.


Again super() can be used to invoke the superclass constructor where as this() can be used to invoke current class constructor.

Is This Answer Correct ?    23 Yes 0 No

Difference between this(), super()?..

Answer / 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

Difference between this(), super()?..

Answer / nikhlesh gupta

this() call one of user define constructor inside another user constructor of the same class such as this(a), this(a,b) & so on.
super() call one of base class constructor inside the derive class constructor such as super(a), super(a,b) & so on.

Is This Answer Correct ?    26 Yes 5 No

Difference between this(), super()?..

Answer / a .k. singh

This keyword is pointing the same class object.and
super keyword is accessing the superc lass constructor

Is This Answer Correct ?    10 Yes 2 No

Difference between this(), super()?..

Answer / a.k.singh

your ans no.6 is wrong because (superc lass )constructor
superc lass mence!!!!!!!!!!1

Is This Answer Correct ?    11 Yes 3 No

Difference between this(), super()?..

Answer / 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

Difference between this(), super()?..

Answer / bindhu solomon

'this' is a pointer points to the object of the methods
invokes. super() is used to invoke the super class member
function.

Is This Answer Correct ?    17 Yes 12 No

Difference between this(), super()?..

Answer / shanthappa

"this" is the implicit keyword/object oriented by the jvm and supplied to every java programs for two purposes.
1) It points to current class object
2) It whenever formal parameters of the class are similar then jvm gets an ambiguity.
"super" is a keyword which will differentiate base class features with derived class features.
The keyword 'super' is placing an important role in three places in java...
1)at variable level
2)at constructor level
3)at method level

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Core Java Interview Questions

If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.

2 Answers  


If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great

2 Answers   KPIT,


wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA

12 Answers   IBM,


Why do I need to declare the type of a variable in java?

0 Answers  


Can singleton class be serialized?

0 Answers  


What is string in java is it a data type?

0 Answers  


What is the difference between an array and an array list?

0 Answers  


Explain the difference between runnable and callable interface in java?

0 Answers  


Name the method that is used to set a TextComponent to the read-only state?

1 Answers  


What is the output of the below java program?

0 Answers  


Is string a data type in java?

0 Answers  


Is java based on c?

0 Answers  


Categories