Path: csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Isn't an array to int primitive? Date: Sat, 07 May 2011 23:27:20 -0700 Organization: Canadian Mind Products Lines: 20 Message-ID: References: <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3792 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". -- 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.