Path: csiph.com!usenet.pasdenom.info!aioe.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: can't return value Date: Thu, 13 Sep 2012 01:11:08 -0700 Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <127f013d-c689-47f9-bb69-4e558d072d61@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 13 Sep 2012 08:11:12 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="28393"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/xbyn5x87iHR0KBHPc4KfvSvGFI1L6QTw=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <127f013d-c689-47f9-bb69-4e558d072d61@googlegroups.com> Cancel-Lock: sha1:e/55e9Vr6zz6LJe4gUNjjIYH7bw= Xref: csiph.com comp.lang.java.programmer:18731 On 9/12/2012 11:17 PM, Lew wrote: > bilsch wrote: >> OK. Now I see what Jukka meant by initializing to NULL. But I don't >> know what exception to throw for 'misssing return statement'. Also I >> don't know how to put it in. > > And there are no 'RETURN' statements in Java. Not sure where this came from, I didn't see anyone upthread quote return as 'RETURN'. However, the null literal in Java is properly spelled 'null', not NULL. Perhaps that's what you meant to comment on.