文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Java中数组的成员

Java中数组的成员

时间:2010-05-02  来源:hejunwang

Array Members The members of an array type are all of the following:
• The public final field length, which contains the number of components of the array (length may be positive or zero).
• The public method clone, which overrides the method of the same name in class Object and throws no checked exceptions. The return type of the clone method of an array type T[] is T[].
• All the members inherited from class Object; the only method of Object that is not inherited is its clone method.
An array thus has the same public fields and methods as the following class:      class A<T> implements Cloneable, java.io.Serializable {         public final int length = X;         public T[] clone() {            try {               return (T[])super.clone(); // unchecked warning            } catch (CloneNotSupportedException e) {               throw new InternalError(e.getMessage());            }         }      }
排行榜 更多 +
方块拼凑最新版 v1.0 安卓版

方块拼凑最新版 v1.0 安卓版

休闲益智 下载
方块拼凑最新版 v1.0 安卓版

方块拼凑最新版 v1.0 安卓版

休闲益智 下载
愤怒的小鸟爆破安卓版 v2.7.0 手机版

愤怒的小鸟爆破安卓版 v2.7.0 手机版

飞行射击 下载