Explain final, finalize() and finally?

Answer Posted / dwr

final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort numbers in java without array?

627


What is an i/o filter?

772


Is singleton class thread safe?

631


What is difference between length and length() method in java ?

657


What is class and its types?

631






When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

697


What is math exp in java?

646


What is stringreader?

612


What's the purpose of static methods and static variables?

684


What are java packages?

690


What is a classloader in java?

624


What is the difference between static and global variables and also define what are volatile variables?

662


Does java support multiple inheritance or not?

680


What are some alternatives to inheritance?

657


What is a lock or purpose of locks in java?

677