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


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

Re: Isn't an array to int primitive?

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 <noone@lewscanon.com>
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 <iq608k$8ok$2@news.albasani.net> (permalink)
References <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> <srdcs61n8jot7hom7fqpc1kbj63iaaeisb@4ax.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 <srdcs61n8jot7hom7fqpc1kbj63iaaeisb@4ax.com>
Cancel-Lock sha1:dPtch6vO+V3ckadGYw+P3STE/T8=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3805

Show key headers only | View raw


On 05/08/2011 02:27 AM, Roedy Green wrote:
> On Sat, 7 May 2011 22:07:14 -0700 (PDT), byhesed<byhesed@gmail.com>
> 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":
<http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html>

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg

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


Thread

Isn't an array to int primitive? byhesed <byhesed@gmail.com> - 2011-05-07 22:07 -0700
  Re: Isn't an array to int primitive? Knute Johnson <nospam@knutejohnson.com> - 2011-05-07 22:10 -0700
    Re: Isn't an array to int primitive? byhesed <byhesed@gmail.com> - 2011-05-07 22:14 -0700
      Re: Isn't an array to int primitive? Knute Johnson <nospam@knutejohnson.com> - 2011-05-07 22:31 -0700
        Re: Isn't an array to int primitive? Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-09 00:03 +1200
          Re: Isn't an array to int primitive? Lew <noone@lewscanon.com> - 2011-05-08 08:09 -0400
  Re: Isn't an array to int primitive? byhesed <byhesed@gmail.com> - 2011-05-07 22:13 -0700
    Re: Isn't an array to int primitive? Lew <noone@lewscanon.com> - 2011-05-08 07:51 -0400
      Re: Isn't an array to int primitive? byhesed <byhesed@gmail.com> - 2011-05-08 21:56 -0700
        Re: Isn't an array to int primitive? Lew <noone@lewscanon.com> - 2011-05-09 08:32 -0400
          Re: Isn't an array to int primitive? Patricia Shanahan <pats@acm.org> - 2011-05-09 07:15 -0700
            Re: Isn't an array to int primitive? byhesed <byhesed@gmail.com> - 2011-05-09 07:31 -0700
  Re: Isn't an array to int primitive? Roedy Green <see_website@mindprod.com.invalid> - 2011-05-07 23:27 -0700
    Re: Isn't an array to int primitive? Lew <noone@lewscanon.com> - 2011-05-08 07:54 -0400

csiph-web