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
What is the integer of 16?
What is xslt in java?
What is map and hashmap in java?
What is an inner class in java?
Can you explain the cs option of java interpreter?
What is the use of default method in interface in java?
Why is sizeof not a function?
How can we access some class in another class in java?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
Differentiate between the constructors and methods in java?
Which collection does not allow duplicates in java?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What are the restriction imposed on a static method or a static block of code?
What is an argument in java?
enlist some features of jdk.