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
Can finally block be used without a catch?
Why are pointers not secure?
What is the function of http?
What is struts in java?
What is the main use of java?
Which sorting algorithm is in place?
what is thread in Java ?
Explain spliterator in java8?
How do you achieve polymorphism in java?
What is object english?
What is difference between array and vector?
Is array a class?
What is the difference between inheritance and encapsulation?
What are the changes in java.io in java 8 ?
What is thread safe java?