Explain final, finalize() and finally?
Answer Posted / vijay chaudhary
Finally is used with try catch for Exception handling
purposes. Whatever written in Finally will run except if
program exits abnormally.
a Try should have atleast one catch or finally.
| Is This Answer Correct ? | 23 Yes | 17 No |
Post New Answer View All Answers
How can you avoid serialization in child class if the base class is implementing the serializable interface?
What is variable length arguments in java?
What are loops in java?
What is collection class in java?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
What is Recursion Function?
Is there any difference between synchronized methods and synchronized statements?
Can we overload the constructors?
Explain garbage collection in java?
What is a superclass?
What data structures are used to perform recursion?
What are the basics of core java?
What does substring mean?
Explain about join() method?
Explain about version control?