Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
First, let me say that your articles are great. The single most valuable Java reference on the Web. I just bought your book on the JVM and look forward to reading it. I was reading Object Finalization and Cleanup , from the June 1998 issue of Javaworld. In particular, Approach 3 class LogFileTransaction. It all made perfect sense, until I tried to implement it. class Scratch { javac Scratch.java Scratch.java:4: Exception java.io.IOException can't be thrown in initializer. Which seems to suggest the IOException can't be thrown in the constructor. Is this correct, or am I missing something?
Replies: |
Sponsored Links
|