Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 241 Page Views: 

How are this() and super() used with constructors?



Posted By: Avi Date: 4 November 2010 11:43:46 AM
 Answer:

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.


Posted By: avibtech


Date: 4 November 2010 11:43:46 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image jLa1tp
Related Questions
Core Java : What is the difference between the >> and >>> operators?

What is the difference between the >> and >>> operators?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits tha....
Category: Core Java Date: 11/4/2010 8:37:52 AM
Core Java : What is object pooling?

What is object pooling?

Creating a large number of identical short lived objects is called object pooling. This takes some t....
Category: Core Java Date: 11/4/2010 8:05:51 AM
Core Java : What is serialization ?

What is serialization ?

Serialization is the process of saving the state of an object.
Category: Core Java Date: 11/4/2010 7:32:50 AM
Core Java : What are the two casting?

What are the two casting?

Casting between primitive numeric types is used to convert larger values, such as double values, to ....
Category: Core Java Date: 11/4/2010 6:26:49 AM
Core Java : May keyword synchronized make function calling slower?

May keyword synchronized make function calling slower?

Yes, and final keyword make function calling faster.
Category: Core Java Date: 11/4/2010 5:54:47 AM