Explain final, finalize() and finally?
Answer Posted / guest
we can declare final for class ,method,varible.
final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.
| Is This Answer Correct ? | 100 Yes | 9 No |
Post New Answer View All Answers
Difference between stack and queue?
What is the relationship between class and object?
How is hashset defined in java?
What are the main concepts of oops in java?
Is java map thread safe?
How hashmap works in java?
How do you sort a set in java?
What are the advantages of java inner classes?
Why do we need hashset in java?
What is the name of the java compiler?
How do you make a thread in java?
What is the difference between applet and application?
How to instantiate static nested classes in java?
What is the program development process?
What is io stream in java?