What are the uses of final, finally and finalize in java?
Answer Posted / ch.soundarya
final is a keyword which is used on variable,method as well as on class.the variable with final keyword cannot be re used.and the method with final cannot be overrriden.the class with final keyword cannont be inherited.
FINALIZE:is amethod used for garbage collection .we can force finalize method explicitly for garbage collection.
FINALLY: it is method is used for close the allocated resources in a running program of java class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which is illegal identifier in java?
How do I convert a string to an int in java?
How do I get 64 bit java?
What is hash table in java?
Explain about class in java?
Difference between default and protected access specifiers?
What is difference between == equals () and compareto () method?
What is the difference between a break statement and a continue statement?
What does int [] mean in java?
What does isempty () do in java?
What is the difference between JVM and JRE?
Why is sizeof not a function?
What is listnode in java?
How many bytes is 255 characters?
What is arraylist e in java?