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
how is final different from finally and finalize in java?
Can we overload the main() method?
What is the purpose of skeleton and stub?
Can we convert stringbuilder to string in java?
What is the difference between a break statement and a continue statement?
What is the finalize method do?
What are abstract methods in java?
v-model life cycle
What string is utf8?
Why do you canvas?
Can a abstract class be defined without any abstract methods?
What is use of super keyword?
Why multiple inheritance is not supported by java?
What do you know about the garbage collector?
What is meant by object oriented programming – oop?