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
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
What is meant by tab pans?
What is local declaration?
Can you write a java class that could be used both as an applet as well as an application?
What is garbage collection? Can it be forced to run?
What are the approaches that you will follow for making a program very efficient?
What is java basic concept?
What is the hashcode () and equals () used for?
Is hashmap thread safe?
What is volatile keyword in java
What is the advantage of functional interface in java 8?
Can an integer be null java?
State the main difference between c++ and java?
Explain the meaning of java applet.
What is the difference between a method and a procedure?