What does Finalize() method in Java do?
I know that the final keyword can be used for classes, methods and for variables. And If I am not wrong the final class can not be subclassed and the final method can not be overridden and the fianl variable can not be changed from its initialized value. What exactly Finalize() method in a Java program do? When can we use that method? Can someone please explain with an example program?
0