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 are extraneous variables examples?
Explain about the security aspect of java?
Why is it called buffering?
How to read and write image from a file ?
give an example for encapsulation?
How do you compare values in java?
What is jee6?
What is the difference between jdk and jre?
How to create a base64 decoder in java8?
What are the differences between include directive and include action?
When do we need to use internal iteration? When do we need to use external iteration?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
Discuss 2D arrays.
Can we override constructors?
What is difference between pointer and reference?