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
Write a program to reverse array in place?
What string is utf8?
What is the difference between a constructor and a method?
What is the flag in java?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?
Can you have two constructors in java?
What does exclamation mean in java?
Can a static block throw exception?
What is array sorting in java?
Is oracle java 11 free?
Why convert an applet to an application?
What is functional interface in java example?
How a string is stored in memory?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What are synchronized blocks in java?