how to use finalize()Method to resources

Answer Posted / rakesh

finalize() is used to release other resources
held by your object (such as database connections or
file handles)

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you access command-line arguments within the code?

563


What is the abstraction?

576


What are keywords in programming?

556


Is empty string in java?

529


How can you set an applet’s height and width as a percentage?

504






How does multithreading take place on a computer with a single cpu in java programming?

520


Write code of any action class?

540


What is a singleton class? Give a practical example of its usage.

580


What is meant by bytecode?

568


What is passing by reference in java?

530


What does string [] args mean?

533


Program to Find the second largest element in an array.

578


Why are the destructors for base class and derived class called in reverse order when the program exits

1694


What is quick sort in java?

545


How java is similar to c?

579