Collection c = new ArrayList(); String s=c.toString();//Collection接口源码中没有toString这个方法,为什么能点出来,不是静态绑定动态运行吗
toString是 Object类的方法啊,Collection是Object类的子类,当然有toString方法
看看Collection的基类是什么,可能是调用基类的toString
ToString以后就是Object[]