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

Can you give few examples of final classes defined in java api?

557


Why is stringbuffer not immutable?

556


What is cr keyboard?

650


What is object english?

581


How will you reverse a singly-link list?

588






What are static blocks and static initalizers in java ?

580


What is canonical name in java?

613


Explain what are final variable in java?

570


What is the purpose of using break in each case of switch statement?

559


Is it possible for a yielded thread to get chance for its execution again?

505


How do you bind variables?

516


How does arrays sort work in java?

595


How are observer and observable used in java programming?

539


What is difference between null and void?

525


What does java edition mean?

525