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


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

Re: Isn't an array to int primitive?

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe06.iad.POSTED!6b61fb94!not-for-mail
From Knute Johnson <nospam@knutejohnson.com>
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Isn't an array to int primitive?
References <0e7f2c35-bdb5-4a35-b695-7a18dad4b567@f31g2000pri.googlegroups.com> <hBpxp.7306$xo2.2938@newsfe07.iad> <4c840367-15fe-406e-80fb-21ba9ac8f380@y27g2000prb.googlegroups.com>
In-Reply-To <4c840367-15fe-406e-80fb-21ba9ac8f380@y27g2000prb.googlegroups.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Lines 38
Message-ID <vUpxp.22857$vT3.5299@newsfe06.iad> (permalink)
X-Complaints-To abuse@newsdemon.com
NNTP-Posting-Date Sun, 08 May 2011 05:31:07 UTC
Organization NewsDemon
Date Sat, 07 May 2011 22:31:08 -0700
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3786

Show key headers only | View raw


On 05/07/2011 10:14 PM, byhesed wrote:
> On 5월8일, 오후2시10분, Knute Johnson<nos...@knutejohnson.com>  wrote:
>> On 05/07/2011 10:07 PM, 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?
>>
>> No
>>
>>> Then, how can it be converted to class type, in this case, Object?
>>
>>> I think I know something incorrectly.
>>> Please correct my wrong idea.
>>
>> Arrays are Objects.
>>
>> --
>>
>> Knute Johnson
>> s/knute/nospam/
>
> Wow, you fastly replied my question
> Thank you :)

Timing, it's everything.

-- 

Knute Johnson
s/knute/nospam/

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