what is the use of finalize()Method
please explain with an example

Answer Posted / hasan balhabak

to free the resources thar are held by any other objent

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between abstraction and encapsulation.

535


How to instantiate member inner class?

620


How to remove the trailing spaces from a string?

648


Explain how can you debug the Java code?

586


Which variable is the independent variable?

532






What is an empty class? What functionality does it offer in Java?

670


Difference between concurrent hashmap and hashtable and collections

561


Why java is made?

561


Which methods are used during serialization and deserialization process?

549


What is the association?

543


When can we say that threads are not lightweight process in java?

588


What is anagram number?

453


What is the difference between menuitem and checkboxmenu item?

771


Define class?

513


what is instanceof operator used in java?

587