Explain role of constructor in a java application?
Answer Posted / harini
The main purpose of construtor is to initialize instance
variables.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of an interface?
What is the difference between Error, defect,fault, failure and mistake?
What is jit and its use?
Difference between method overloading and method overriding in java ?
What is a dynamic array in java?
Explain wrapper classes in java?
Is java a software?
How to create packages in java?
What are the disadvantages of object oriented programming?
What is the purpose of object oriented programming?
What is difference between final and immutable?
Explain about doubly linked list
What is method reference?
How do you empty a list in java?
Is string passed by reference in java?