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
How do you define a parameter?
What is user defined exception in Java?
How many ways can we create the string object?
Tell some latest versions in JAVA related areas?
Can we inherit a class with private constructor?
Where can I find jdk in my computer?
Is java call by value?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
does java support pointers?
What does += mean in java?
Can we convert stringbuilder to string in java?
What is a native method in java programming?
What are bind parameters?
What is the maximum size of byte array in java?