Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Methodenaufruf bei String[]
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bernd Eckenfels  
View profile   Translate to Translated (View Original)
 More options Mar 22 2009, 10:25 pm
Newsgroups: de.comp.lang.java
From: Bernd Eckenfels <e...@neskaya.eckenfels.net>
Date: Mon, 23 Mar 2009 02:25:49 +0000 (UTC)
Local: Sun, Mar 22 2009 10:25 pm
Subject: Re: Methodenaufruf bei String[]

Tobias Müller <TRMuel...@gmx.de> wrote:
> Bernd Hohmann wrote:
>>       if (o instanceof OutputStream) (OutputStream) o).close();
> public static void close(Closeable closable)

Vorsicht, bei InputStreams kann man die Exceptions beim Close sicherlich
problemlos ignorieren, beim Schreiben kann dies aber zu unbemerktem
Datenverlust führen.

> Das fangen von java.lang.Throwable ist diskussionswürdig. Hier wäre
> java.lang.Exception wohl deutlich angebrachter. Du möchtest VM-Errors
> nämlich ziemlich sicher nicht einfach wegwerfen.

Oder diese explizit fangen und weiterwerfen (notfalls).

Gruss
Bernd


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.