The main function of finalization is to provide the opportunity to an object which is unattended or can say unreachable to complete the cleanup process task . This activity is done before the object is collected as considered as garbage .
Java is a very strong language usually used for online web activities .
It covers so many procedures and processes .
Before we go further we have to first consider that what does finalization means.
Specifically finalization means the activity taken by JVM ( Java Virtual Machines ). This is a chance to the user to check and clean up the resources before the objects get into garbage. This garbage collector is set to be responsible to regaining all the unused memory already pre-occupied by such invalid object .
Furthermore this garbage collector cannot take or provide any guarantee for not putting the program to work out of memory. It is just responsible to for all the programs to use resources of memory in faster way and after then all garbage can be collected. There is also a possibility for the programs to create such objects which are not there for been garbage is collected.
Java is a very strong language usually used for online web activities .
It covers so many procedures and processes .
Before we go further we have to first consider that what does finalization means.
Specifically finalization means the activity taken by JVM ( Java Virtual Machines ). This is a chance to the user to check and clean up the resources before the objects get into garbage. This garbage collector is set to be responsible to regaining all the unused memory already pre-occupied by such invalid object .
Furthermore this garbage collector cannot take or provide any guarantee for not putting the program to work out of memory. It is just responsible to for all the programs to use resources of memory in faster way and after then all garbage can be collected. There is also a possibility for the programs to create such objects which are not there for been garbage is collected.