web之家  

.getClass()和.class的区别如下:

       TestClass t=new TestClass ();

       t.getClass();

       TestClass .class

      .getClass()是实例所用,.class是类所用

 

posted on 2017-08-04 11:45  路修远而求索  阅读(259)  评论(0编辑  收藏  举报