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 are the main classes of the list interfaces? : java collections

0 Answers  


what about web architecture?

1 Answers   HCL,


What are the different types of ways where you can iterate over a list? : java collections

0 Answers  


What are the interfaces in java collections? : java collections

0 Answers  


How many controlers are there in spring? Plz send me ans

1 Answers   HCL,






What are the differences between the java collection and the java list? : java collections

0 Answers  


Which interface does java.util.hashtable implement?

0 Answers  


whats the relation ship between LDAP and JNDI?

1 Answers  


What are the different types of classes implemented in the set interfaces? : 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,


Explain JSP life cycle?

2 Answers   Accenture,


Categories