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 exact difference in between Unicast and Multicast object? Where will it be used?
What is the difference between instanceof and isinstance?
What is void keyword?
How can you make sure that your singleton class will always return single instance in multi-threaded environment?
What do you mean by byte code?
How do you escape json?
Can memory leak in java?
What is the use of using enum to declare a constant?
What is the difference between path and classpath variables?
What is overriding in java?
How do you allocate memory to object?
What is jpa specification?
Explain parallel processing in java8?
How we can run a jar file through command prompt in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net