what is the use of finalize()Method
please explain with an example
Answer Posted / mrudang
Sometimes u have seen that some objects of java need to
perform an non- java resoures like file handler etc..
Now Suppose that object going to distroy.So java provides
the mechanism that some specific action will perform when u
delect or try to distory that object..
The opration that u want to perform when such kind of
object Distory is written in finalize method...
Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Can interface be private in java?
Is string is a data type?
What is a nonetype?
What is ph and buffers?
Which command from the jdk compiles a java program?
What are the 3 types of loops in java?
Does printwriter create a file?
What is javac_g?
Explain the key functions of data binding?
Why do we need array in java?
What is difference between null and void?
What are parsers? Dom vs sax parser.
What is meant by data hiding/encapsulation?
Difference difference paint() and paintcomponent()?
Mention some features of java?