Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15996

Re: e==null? really?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: e==null? really?
Date Fri, 13 Jul 2012 07:29:24 -0700
Organization A noiseless patient Spider
Lines 18
Message-ID <jtpbc8$23s$1@dont-email.me> (permalink)
References <c42a91b5-4e73-4647-8dc8-58b258243c2a@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 8bit
Injection-Date Fri, 13 Jul 2012 14:29:28 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="2172"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+09JKYudXt32orca/rsZWqSF6Vxx7uHM0="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <c42a91b5-4e73-4647-8dc8-58b258243c2a@googlegroups.com>
Cancel-Lock sha1:5qaCkLftQ8TpcOQ2e9CDZTlp8q0=
Xref csiph.com comp.lang.java.programmer:15996

Show key headers only | View raw


On 7/13/2012 7:18 AM, bob smith wrote:
> Is it possible to do this in Java?
>
> throw null;


Yes. JLS:

<http://docs.oracle.com/javase/specs/jls/se7/html/jls-14.html#jls-14.18>


"throw Expression ;

The Expression in a throw statement must denote either 1) a variable or 
value of a reference type which is assignable (ยง5.2) to the type 
Throwable, or 2) the null reference..."

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

e==null?  really? bob smith <bob@coolfone.comze.com> - 2012-07-13 07:18 -0700
  Re: e==null?  really? markspace <-@.> - 2012-07-13 07:29 -0700
    Re: e==null?  really? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-07-13 10:48 -0400
      Re: e==null?  really? markspace <-@.> - 2012-07-13 08:22 -0700
        Re: e==null?  really? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-07-13 09:35 -0700
      Re: e==null?  really? Lew <lewbloch@gmail.com> - 2012-07-13 13:11 -0700
        Re: e==null?  really? Joerg Meier <joergmmeier@arcor.de> - 2012-07-13 22:55 +0200
          Re: e==null?  really? "javax.swing.JSnarker" <gharriman@boojum.mit.edu> - 2012-07-13 17:01 -0400
    Re: e==null?  really? Lew <lewbloch@gmail.com> - 2012-07-13 13:09 -0700
  Re: e==null?  really? Roedy Green <see_website@mindprod.com.invalid> - 2012-07-13 12:09 -0700
    Re: e==null?  really? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-07-13 23:06 +0200
      Re: e==null?  really? Roedy Green <see_website@mindprod.com.invalid> - 2012-07-14 06:30 -0700

csiph-web