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 Visual Source Safe(source control Tool)?

1 Answers  


What are the different types of collections views being provided by the map interface? : java collections

0 Answers  


what are callback methods?

3 Answers   iFlex,


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

0 Answers  


In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?

0 Answers  






Explain JSP life cycle?

2 Answers   Accenture,


what is mean by hasing and maping in java platform and advantage?

0 Answers   CTS,


Write a postfix expression to (a*(b+c/d)*d-e)

4 Answers   Adobe,


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


what is java virtual machine

4 Answers  


wnet use DAO design in u r project?

1 Answers   Godrej,


can u draw class/object diagram for ATM

0 Answers   HCL, Zycus Infotech,


Categories