摘要:
能够分析类能力的程序称为反射,可以用来:在运行时分析类的能力。在运行时查看对象。实现通用的数组操作代码。利用Method 对象, 这个对象很像中的函数指针。 Class类 Class类是最常用的反射工具,Object类中的getClass方法将会返回一个Class类型的实例,Class实例的getN 阅读全文
posted @ 2021-05-02 23:15
坂田神乐
阅读(373)
评论(0)
推荐(0)
摘要:
Collection接口与迭代器 Java集合的基本接口是Collection接口,这个接口的基本方法有: public interface Collection<E> extends Iterable<E> { int size(); boolean isEmpty(); boolean cont 阅读全文
posted @ 2021-05-02 21:00
坂田神乐
阅读(46)
评论(0)
推荐(0)

浙公网安备 33010602011771号