If a Runtime Exception is thrown in the finalize method -
a) The running application crashes. b) The exception is simply ignored and the object is garbage collected. c) The exception is simply ignored, but the object is not garbage collected. 4) The Exception causes the JVM to crash. Select the correct answer.
The correct answer is B. Even if finalize method throws runtimeException , it is ignored and the object is garbage collected. correct me if i am wrong. Rashmi
agree wid Rashmi b) The exception is simply ignored and the object is garbage collected. ( but NOT immediately , remember ) ( tho , think tht options culd hav been better-wordered )
------------------ Gagan (/^_^\)
Gagan (/^_^\) SCJP2 SCWCD IBM486 <br />Die-hard JavaMonk -- little Java a day, keeps you going.<br /><a href="http://www.objectfirst.com/blog" target="_blank" rel="nofollow">My Blog</a>