Article View: borland.public.jbuilder.java.language
Article #14812Try with no catch.
From: Hugo Ferreira
Date: Wed, 04 Aug 1999 00:00
Date: Wed, 04 Aug 1999 00:00
27 lines
804 bytes
804 bytes
Hi,
Simple question: Is a try and finally block allowed with no catch block.
example:
class X
{
method a()
{
try
{
do_something()
}
finally
{
do_nothing()
}
}
} // class
Something like this compiles, but when the following line of code executes :
Class clss = X.class
java complained.
Technical Details
Message-ID:
<7o9m0l$p122@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,664c3a7a9c471a,start X-Google-Attributes: gidf74b3,public From: "Hugo Ferreira" <HugoF@cocaina.inescn.pt> Subject: Try with no catch. Date: 1999/08/04 Message-ID: <7o9m0l$p122@forums.borland.com> X-Deja-AN: 508804584 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700