what are the differences between final,finally,finalize
methods?
Answer Posted / ambika
final is a keyword.its constant.it cant be changed from its
initiated value.
finally() method used exception handling concept.finally()
block will execute whether or not try block can be execute.
its used to close a file.
finalize is used when an object is just before deleted,it
can be used in garbage collection.
| Is This Answer Correct ? | 96 Yes | 18 No |
Post New Answer View All Answers
What is the biggest integer?
What is difference between jdk,jre and jvm?
Is java 1.7 the same as java 7?
Explain about field hiding in java?
What are filterstreams?
What is the main purpose of serialization in java?
Can we override private method?
Why local variables are stored in stack?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
Can we restart a thread already started in java?
What is the base class for error and exception?
Explain about automatic type conversion in java?
What is the main functionality of the remote reference layer?
Explain try and catch keywords in java?
How can we pass argument to a function by reference instead of pass by value?