Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: Isn't an array to int primitive? Date: Sun, 08 May 2011 07:54:00 -0400 Organization: albasani.net Lines: 21 Message-ID: References: <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net rqv9hFJEkErhSyGa8j5ElmopCuPT8vW2Ei/G3yHK1CwBtPtaZVAd6koyPrTTaHkwCSuW44+EJsVciIPwQDP9ow== NNTP-Posting-Date: Sun, 8 May 2011 11:53:57 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="9KNu6zHwdvPBv+3SVC8GxEU94RgJlHVWGzmeWclfks5sViZrufa9eRM4rqn62RAtkrR31uRmQRnJCnOxqzJ9zXo1S/QWZbItEPTswFIBW7NRaX8cKabKs9KQO1LoiZds"; 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:dPtch6vO+V3ckadGYw+P3STE/T8= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3805 On 05/08/2011 02:27 AM, Roedy Green wrote: > On Sat, 7 May 2011 22:07:14 -0700 (PDT), byhesed > wrote, quoted or indirectly quoted someone who said : > >> I am thinking that it is weird. >> Isn't the anonymous array primitive type, is it? >> Then, how can it be converted to class type, in this case, Object? > > Arrays are Objects. They are also built-in types with a few magic > properties other Objects do not have. > > I suspect you are getting hung up on two different interpretations of > the meaning of the word "primitive". The Java-specific meanings for "primitive" vs. "reference": -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg