determine the meaning of finalize when a


Determine the meaning of finalize

When  a  finalize method  is  defined  in  a  class,  Java  run  time  calls  finalize() whenever  it's  about  to  recycle  an object  of  that  class.  It's  important that  a  garbage  collector  reclaims  objects  in  any  order  or  never  reclaims them. We can't predict and assure when garbage collector would get back the memory of unreferenced objects.

Garbage  collector  can  be  requested  to  run by  calling System.g c () method.  It  isn't necessary that it accepts request and run.

 

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: determine the meaning of finalize when a
Reference No:- TGS0356468

Expected delivery within 24 Hours