how to use finalize()Method to resources

Answer Posted / srinivasa

As this method is available in object class we can override
the method and provide the code to release the resources.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is r * in math?

554


How many types of memory areas are allocated by JVM in java?

599


Explain an algorithm to find depth of a binary tree.

554


What is the difference between a field variable and a local variable?

577


Highest level event class of the event-delegation model?

3507






Difference between default and protected access specifiers?

508


What is the difference between the prefix and postfix forms of the ++ operator?

560


Can private class be extended java?

573


Can you change array size in java?

538


Can an interface have a constructor?

518


What is temp in java?

559


What is use of set in java?

498


What is a map in java?

557


What is difference between final and immutable?

565


What is the difference between final, finally and finalize() in java?

523