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


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

Re: Isn't an array to int primitive?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Isn't an array to int primitive?
Date 2011-05-07 23:27 -0700
Organization Canadian Mind Products
Message-ID <srdcs61n8jot7hom7fqpc1kbj63iaaeisb@4ax.com> (permalink)
References <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com>

Show all headers | View raw


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".
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
How long did it take after the car was invented before owners understood 
cars would not work unless you regularly changed the oil and the tires?
We have gone 33 years and still it is rare to uncover a user who 
understands computers don't work without regular backups.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next 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