Discussion:
問個笨問題...有關Java的陣列..
(时间太久无法回复)
我是陳俊安啦
2007-06-25 14:45:11 UTC
Permalink
為什麼(Double[])不是(Object[])的子類?

那(Double[])的父類別是什麼?

這種資料有在j5API裡面嗎?
--
┌╗┬─ Origin:《Ψ義守觀山風情Ψ》<bbs.isu.edu.tw> ─┬╖╔╗
╚┘╙─ From : 59.116.137.230  ──────────╛└╝╝
沉默是金
2007-06-25 20:07:45 UTC
Permalink
������(Double[])���O(Object[])���l��?
��(Double[])�������O�O����?
�o�ظ��Ʀ��bj5API�̭���?
class:[Ljava.lang.Double;
class simplename:Double[]

Interface:Cloneable
Interface:Serializable

super class:java.lang.Object


---Testing case---

Double[] d=new Double[5];

System.out.println("class:"+d.getClass().getName());
System.out.println("class simplename:"+d.getClass().getSimpleName());

Class[] c=d.getClass().getInterfaces();

for(Class ci:c){
System.out.println("Interface:"+ci.getSimpleName());
}

Class superc=d.getClass().getSuperclass();
System.out.println("super class:"+superc.getName());

--
�@�e�f�g�h�i�i�i�h�g�f�e�d�@�@�@�@�@�@�@�@���q���w�� ���@�@�@�@�@ �@
�@���i�i�i�i�i�i�i�i�i�i�i���@�@�@�@�@�@�@���q���עx=�x�@�@�@�@�@�@�@�@ 
���i�i�i�i�i�i�w�w�w�w�w�w�w���@�@�@�@���D�@���@ �� �� �U�@���@�y�@�D��
�@���i�i�i�i�i�i�i�w�w�w�w�w�w���@���@�����@�@�@�@�@�@�@�@�@�@�@�@ ����
�@���i�i�i�i�i�i�w�w�w�w�w�w�w���@�@�@�������@�@�ťժ��@�ɡD�l ������
 �@���i�i�b�c�d�e�f�g�h�i�i�i�g�f�e�d�c�c��telnet://tony1223.no-ip.info

--
�~�� Origin �w�� �_���� aurora.twbbs.org  �e�f�g �w��
���w Author ���w 220-134-27-68.HINET-IP.hi 
---
Posted via news://freenews.netfront.net
Complaints to ***@netfront.net

继续阅读narkive:
Loading...