how to use finalize()Method to resources

Answer Posted / sakthivel(gceb)(n.p)pollachi

finalize is one of the keyword in java.if you once declare
a method is final it can not be derived from another
class.you can use them in the form of finalize function name
()

Is This Answer Correct ?    6 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between member variables initialization and assignment in a constructor?

651


Can you instantiate the math class?

594


What does @override mean?

526


Why you should not use singleton?

532


What is the driver class?

560






When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

602


Is java platform independent?

559


What is the difference between a switch statement and an if statement?

506


Difference between arraylist and vector.

580


What data type is a string?

505


When should you make a function static?

537


Difference between method overloading and overriding.

573


Who is founder of java?

522


How is java hashmap implemented?

540


What are the different ways to handle exceptions?

535