描写丁香花的作文

时间:2017-11-03 08:38:09来源:杰瑞文章网点击:作文字数:1500字
对于数组实例来说,其类型是由JVM运行期动态生成的,表示为[[Lcom.shengsiyuan.jvm.classloader.MyParent4;这种形式 动态生成的类型,其父类型是Object。 对于数组来说,JavaDoc经常将构成数组的元素为Component,实际上就是将数组降低一个维度后的类型。但是数组类与类加载器仍然又很密切的关系,因为数组类的元素类型(ElementType,指的是数组去掉所有维度的类型)最终是要靠类加载器去创建。 public class MyTest4 { public static void main(String[] args) { MyParent4[] myParent4s = new MyParent4[1]; System.out.println(myParent4s.getClass());//class [Lcom.shengsiyuan.jvm.classloader.MyParent4; System.out.println(myParent4s.getClass().getClassLoader());//sun.misc.Launcher$AppClassLoader@18b4aac2 System.out.println("========"); MyParent4[][] myParent4s1 = new MyParent4[1][1]; System.out.println(myParent4s1.getClass());//class [[Lcom.shengsiyuan.jvm.classloader.MyParent4; System.out.println(myParent4s.getClass().getSuperclass());//class java.lang.Object System.out.println("========"); int[] ints = new int[1]; System.out.println(ints.getClass());//class [I System.out.println(ints.getClass().getSuperclass());//class java.lang.Object } } class MyParent4{ static { System.out.println("Myparent4 static code"); } }
作文投稿

描写丁香花的作文一文由杰瑞文章网免费提供,本站为公益性作文网站,此作文为网上收集或网友提供,版权归原作者所有,如果侵犯了您的权益,请及时与我们联系,我们会立即删除!

杰瑞文章网友情提示:请不要直接抄作文用来交作业。你可以学习、借鉴、期待你写出更好的作文。

描写丁香花的作文相关的作文:

    无相关信息

说说你对这篇作文的看法吧