Home > Uncategorized > Why finalize method is protected?

Why finalize method is protected?

I used to wonder why all methods in the java.lang.Object is public and only finalize is protected.  Finalize is just a callback method which is supposed to be called by the JVM.  So, ideally, it should be private.  Here is a mind-blowing explanation of why finalize is protected?

Categories: Uncategorized Tags: , ,
  1. Alexwebmaster
    March 3rd, 2009 at 09:36 | #1

    Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

  1. No trackbacks yet.