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

Will minecraft java be discontinued?

640


Write a program to find maximum and minimum number in array?

544


What are the ways to instantiate the class class?

591


Why call by value prevents parameter value change?

576


What is the difference between private & public & friendly classes?

538






How do you implement tree mirroring in java?

583


How will you call an Applet using Java Script Function?

535


What is static class

609


Can we declare an interface as final?

567


What is the purpose of the strictfp keyword?

601


What is the console in java?

667


What are different ways of object creation in java ?

564


Is arraylist sorted in java?

522


What does void * mean?

523


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

645