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
What is serialization in java?
How do you declare a variable?
Is empty list java?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
Explain listiterator and methods in listiterator?
What is the meaning of flag day?
What is the difference between a choice and a list?
What is complexity and its types?
What is purpose of applet programming?
How do you add an arraylist to an array in java?
What is the use of arraylist in java?
Is java an open source?
What is anti pattern in cyber security?
What are the different data types in java?
What is general methodology?