Answer Posted / suman blazta
Constructors are used to create and initialize objects of their class type.
Constructor is a special member function that takes the same name as the class name.The constructor is automatically named when an object is created. A constructor is named whenever an object is defined or dynamically allocated using the "new" operator.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Is string a class?
What is static in java?
How to change the priority of thread or how to set priority of thread?
What are the differences between Java 1.0 and Java 2.0?
Are generics important java?
Is string serializable in java?
What is command line argument
What is java lang string?
What are the 2 types of java programs?
How many static init can you have?
What are the different types of inheritance in java?
Can arraylist hold different types java?
Define the term string pool?
What are parameters in a method?
What is an arraylist in java?