What is diffrance between FINALIZE() & FINALLY ?
Answer Posted / srikanth reddy
FINALIZE()is used when object is garbage collected to
cleanup the resource like io straems or database connection
before gc()method to unrefer the object which refered
finally block is also used to close the resource like jdbc
connection etc
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is string a data type in java?
How can you add and remove nodes in jtree?
What is variable argument in java?
Explain the different forms of polymorphism?
What do you mean by composition in java?
What is use of static in java?
What is nextline method in java?
What is collection sort in java?
Can a static class implement an interface?
How do you sing an Applet ?
What is concurrent hashmap and its features?
What are the 4 types of research methods?
What is the final field modifier?
When should I use singleton?
What is predicate in java?