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 generic class?
What is function overriding and overloading in java?
What are the major advantages of internal iteration over external iteration?
Why we use methods in java?
What is the range of a character variable?
Is 0 an irrational number?
What is the constructor?
Differentiate between stringbuffer and string?
What is type parameter in java?
Write a program to find the whether a number is an Armstrong number or not?
Explain about automatic type conversion in java?
Why string is not thread safe?
Write a program to reverse a number in java?
What is a numeric format?
Explain the selection sort algorithm?