Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3783
| From | byhesed <byhesed@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Isn't an array to int primitive? |
| Date | 2011-05-07 22:13 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <688dfa8b-c31d-4372-8210-e8417a821866@k27g2000pri.googlegroups.com> (permalink) |
| References | <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> |
On 5월8일, 오후2시07분, byhesed <byhe...@gmail.com> wrote: > I know that primitive type variables cannot be converted to class > type, right? > But, how can the below code operate well? > > System.out.println(new int[10] instanceof Object); > > The result is "true". > > 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? > > I think I know something incorrectly. > Please correct my wrong idea. Sorry. I've just solved my question. The book says that "Arrays are objects." Thank you.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
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