Answer Posted / nagendra kumar
1.A Constructor is Just like a method without return type.
2.The Class name and the Constructor name should be same.
3.Constructor are useful to initialize instance variable
with their default values.
4.Constructor can be executed only once while creating the
Object.
| Is This Answer Correct ? | 43 Yes | 2 No |
Post New Answer View All Answers
What are the difference between string, string builder, and string buffer in java?
What is use of static in java?
What is data type in computer?
Explain about class in java?
What is the largest data type in java?
What is logical variable?
Why we go for collections in java?
Give an example of use of pointers in java class.
what is interface in java? Explain
Why arraylist is used in java?
how come we know the object is no more used in the class?
What language is pass by reference?
What is private static in java?
What methods are used in Servlet?Applet communication?
What is a percentage sign called?