Thanks for the feedback.
The difference that confused me is:
If I put the method with the second (type of) bold throw, like this:
The compiler will complain a checked exception (in this case IOException)
is not caught or declared. This is an error and the code will not compile.
However, for methods with the first type of bold throw, it's fine not
to declare/handle it, as in the following example:
So I was trying to see which "throw" means the method it is associated
with MUST declare or handle exception (e.g. is it safe to say for
all methods in the API
doc that comes with the second type of throw,
like createNewFile(), we must put it in try...catch, or declare it.
Thanks.
[ March 22, 2006: Message edited by: C Law ]