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 does percent mean in java?
How a string is stored in memory?
Can a constructor call the constructor of parent class?
What is java beans?
Why object class is super class for every class in java?
what is synchronization? : Java thread
What is singleton pattern?
Why does java not allow multiple public classes in a java file ?
What is the difference between serializable and externalizable interfaces?
Can we overload the constructors?
How do you implement singleton class?
What is meant by string is immutable?
Can a singleton class be inherited?
What are reference variables in java?
Why java is said to be pass-by-value ?