博客
关于我
Java 中哪些对象可以获取类对象
阅读量:363 次
发布时间:2019-03-05

本文共 948 字,大约阅读时间需要 3 分钟。

?Java??????????????????????????????????????????????????????????????

  • ???????Java?????????????String.class?Map.class?????????????????????????????????????

  • ????????????????Map.class????????????????????????????

  • ?????????????int?boolean???????????????int.class????????????????????????

  • ????????????????????????????????class????????int[].class????????????

  • Void???Void?????????????????Void.class???????????????????????????????

  • ????????????????????????????Java????????????????????????????????????????.class???????

    @Testpublic void testClassObject() {    // ?????    System.out.println("String.class = " + String.class);    // ??????    System.out.println("Map.class = " + Map.class);    // ????????    System.out.println("int.class = " + int.class);    // ??Void????    System.out.println("Void.class = " + Void.class);    // ????????    System.out.println("int[].class = " + int[].class);}

    ?????????????????????????????????????????????????????Java??????????

    转载地址:http://wtcg.baihongyu.com/

    你可能感兴趣的文章
    PHP下curl用法分析
    查看>>
    php下载文件
    查看>>
    php与web服务器关系
    查看>>
    redis事务操作
    查看>>
    php中0,空,null和false的区别
    查看>>
    PHP中array_merge和array相加的区别分析
    查看>>
    PHP中Closure::bindTo的用法分析
    查看>>
    php中curl得使用
    查看>>
    PHP中curl特性
    查看>>
    PHP中date时间不对
    查看>>
    PHP中dirname(__FILE__)的意思
    查看>>
    PHP中extract()函数的妙用
    查看>>
    PHP中fileinfo的作用以及怎么开启fileinfo
    查看>>
    PHP中file_get_contents如何带上cookies
    查看>>
    PHP中header的作用
    查看>>
    PHP中implode()和explode()
    查看>>
    PHP中ob系列函数讲解(浏览器缓存技术)
    查看>>
    PHP中serialize和json序列化与反序列化的区别
    查看>>
    Redis事务处理
    查看>>
    php中传值与传引用的区别是什么
    查看>>