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 the abstract class?
What is the difference between path and classpath variables?
How java uses the string and stringbuffer classes?
Describe different states of a thread.
When can an object reference be cast to an interface reference in java programming?
Is singleton set an interval?
What is the use of static methods?
Can java program run without jre?
How do you create a sop?
Which is better arraylist or vector?
What is qms certification?
Why string objects are immutable in java?
What is a local block?
How do you compare objects in java?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?