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
What does null mean in java?
What is a native method in java programming?
What is static in java?
What is the SimpleTimeZone class?
What is the access scope of protected access specifier?
What is array class in java?
Why is an interface be able to extend more than one interface but a class can’t extend more than one class?
What is difference between hashset and hashmap in java?
Is oracle charging for java?
What is static block?
Can you achieve runtime polymorphism by data members?
How do you stop a thread in java?
How to solve the problem of generating the unique hash keys with hash function?
What is byte [] in java?
Can we serialize singleton class?