Answered Questions

  • what is the difference between finally block and finalize method?

    ujwala

    • Dec 15th, 2006

    finalize() method is executed prior to the execution of a garbage collector. When a object is no longer in use, but it holds some resources, before garbage collector collects this object these resou...

    srinivasreddy

    • Nov 20th, 2006

      A method which is declared as finalize can not be overridden in subclasses which extends the class has the finalized method Finally block will be exeuted in a programe at any caseif wether programe terminates in try or catch block finally it executes the finnaly block.