Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Isn't an array to int primitive? Date: Mon, 09 May 2011 08:32:22 -0400 Organization: albasani.net Lines: 31 Message-ID: References: <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> <688dfa8b-c31d-4372-8210-e8417a821866@k27g2000pri.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net HkzTTL57royVaA+UQSRkFL11sG7dS9LWD8sTjO+mQoj4Kei3908klbVGiWjsB9nmzWqS5hbupomR8Ds7+SUkAg== NNTP-Posting-Date: Mon, 9 May 2011 12:32:20 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="H8S75DFhAIPAKYcPlAckMB5FFN0uBhaNcvGpkTAQS1Nq4JzbbHdBx9oLgQGFjZ1tmwLY1ACrIZREkjQCxfPpEMcUFgJ5tgy+Fj8JWAMKE1pMu2fB82sQ6I22EpWIrdfz"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:Unr1x8TzGrpyYhI+km29vJPAN1I= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3847 byhesed wrote: > Lew wrote: >> -- >> Lew >> Honi soit qui mal y pense.http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg Please don't quote sigs. > Sorry for late reply. > > What I am reading is 8/e by Y. Daniel Liang>. > > Thank you for your link(JLS), but isn't it too old? No, it's current. The JLS is what *defines* the language. The other references simply describe it. Thus, the JLS is the ultimate authority on what is and is not legal in Java. > I'll read Effective Java, thank you again. One hint for that book: he uses the terms "consider ("Consider static factory methods instead of constructors") and "prefer" ("Prefer interfaces to abstract classes") a lot. He means that. "Prefer" doesn't mean "always use". "Consider" doesn't mean "only use". He's suggesting that we think about our choices, not make them blindly. -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg