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 ++ a in java?
What is java literals?
What are anonymous inner classes?
State the main difference between c++ and java?
does java support pointers?
How do you compare arrays in java?
What is navigable map in java?
Explain the overview of UDP messaging.
What is a buffer in java?
How to sort an unsorted array in java?
What is the purpose of the enableevents() method in java programming?
What is the difference between iterator and enumeration ?
Difference between nested and inner classes ?
What does s mean in regex?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1