What is a constructor?

Answers were Sorted based on User's Feedback



What is a constructor?..

Answer / suma

A constructor is one which is used to initialize the
instance variables of an object.

Is This Answer Correct ?    7 Yes 1 No

What is a constructor?..

Answer / srinivasa reddy

Guarrented intilization of instance variables of an object.

Is This Answer Correct ?    3 Yes 2 No

What is a constructor?..

Answer / saravanan

Class name and Methods name are same. It has no Return type.
When create a instance with class the method is
automatically called.

Is This Answer Correct ?    0 Yes 0 No

What is a constructor?..

Answer / sunil kumar

Constructor is a special method having the same name as class name, without any return type not even void. And it is used to initialize the instance variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Java J2EE AllOther Interview Questions

What is a constructor?

4 Answers  


What are the different types of classes implemented in the set interfaces? : java collections

0 Answers  


what is the IDE that you have used to write your java programs?

2 Answers   Inforica, Interface Software,


wnet use DAO design in u r project?

1 Answers   Godrej,


whats the relation ship between LDAP and JNDI?

1 Answers  






What is an algorithm in java collection framework? : java collections

0 Answers  


What is iterator in the java collections framework? : java collections

0 Answers  


What is the enumerator of the java collection framework? : java collections

0 Answers  


what is the difference between checked and unchecked Exceptions?

4 Answers   CTS,


What are the considerations to be made in case of loops in java ?

0 Answers  


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

0 Answers   TCS,


what is acl(access control list)?

1 Answers   Athena, HCL,


Categories