• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Please Check Two Statements

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. You can't use super.super.aMethod(); in java

2. If an exception is thrown during execution of the finalize method of an object, then the exception is ignored and the object is destroyed.

Please check if both are true or not!
I discovered it through my own study
[ June 10, 2008: Message edited by: sachin verma ]
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that the first statement is correct but I am not sure about the second one.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can some one please explain the following statement:

If an exception is thrown during execution of the finalize method of an object, then the exception is ignored and the object is destroyed.
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read like this about finalize method:

finalize is called only once for an object before it is garbage collected. If any exception is thrown in finalize, the object is still eligible for garbage collection (at the discretion of gc). The garbage collector thread runs independent of any application. So it simply ignores the exception and collects the objects if possible.

I am not sure about it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic