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
Similarity and difference between static block and static method ?
Define packages in java?
What are static initalizers in java ?
Does java allow default arguments?
How to check if linked list contains loop in java?
Why java is a platform independent? Explain
How java uses the string and stringbuffer classes?
Is char a method in java?
What is size_t?
Can the garbage collection be forced by any means?
Why are arrays useful in java?
How to stop a thread in java? Explain about sleep () method in a thread?
What is a nested class?
Implement a stack with push (), pop() and min() in O(1) time.
Can java list be null?