Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #3841
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!postnews.google.com!b7g2000prg.googlegroups.com!not-for-mail |
|---|---|
| From | byhesed <byhesed@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Isn't an array to int primitive? |
| Date | Sun, 8 May 2011 21:56:20 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 58 |
| Message-ID | <ca73811b-96d4-41c0-94c7-4c69efe0498b@b7g2000prg.googlegroups.com> (permalink) |
| References | <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> <688dfa8b-c31d-4372-8210-e8417a821866@k27g2000pri.googlegroups.com> <iq604p$8ok$1@news.albasani.net> |
| NNTP-Posting-Host | 119.202.36.92 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | posting.google.com 1304916980 24622 127.0.0.1 (9 May 2011 04:56:20 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Mon, 9 May 2011 04:56:20 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | b7g2000prg.googlegroups.com; posting-host=119.202.36.92; posting-account=v_GC8QoAAABz34PprEBWdejdnnHZvg4_ |
| User-Agent | G2/1.0 |
| X-HTTP-UserAgent | Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.65 Safari/534.24,gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3841 |
Show key headers only | View raw
On 5월8일, 오후8시51분, Lew <no...@lewscanon.com> wrote: > byhesed wrote: > > byhesed 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." > > What book? Please answer. > > The authority is the Java Language Specification (JLS). Also, GIYF. > <http://java.sun.com/docs/books/jls/third_edition/html/arrays.html> > > Not every tertiary author is as good as every other. Any author who > contradicts the JLS is plain wrong. Some authors explain the concepts very > well, many do not even when they technically are correct. The latter category > includes many bloggers, and the category of incorrect information includes > many, many more bloggers. > > So trust the JLS and augment with a) the official Java tutorials, b) reputable > writers like Brian Goetz, and c) seminal books such as /Effective Java/, 2nd > ed., by Joshua Bloch (mandatory reading!). > <http://java.sun.com/docs/books/effective/> > > -- > Lew > Honi soit qui mal y pense.http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg Sorry for late reply. What I am reading is <Introduction to Java Programming brief verssion 8/e by Y. Daniel Liang>. Thank you for your link(JLS), but isn't it too old? I'll read Effective Java, thank you again.
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