Explain final, finalize() and finally?
Answer Posted / dwr
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 ? | 7 Yes | 2 No |
Post New Answer View All Answers
How to sort numbers in java without array?
What is an i/o filter?
Is singleton class thread safe?
What is difference between length and length() method in java ?
What is class and its types?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is math exp in java?
What is stringreader?
What's the purpose of static methods and static variables?
What are java packages?
What is a classloader in java?
What is the difference between static and global variables and also define what are volatile variables?
Does java support multiple inheritance or not?
What are some alternatives to inheritance?
What is a lock or purpose of locks in java?