所有的类都是Object的子类,Object类是最顶层的类,他没有父类。
Java源码里面的注释:
* Class {@code Object} is the root of the class hierarchy.
* Every class has {@code Object} as a superclass. All objects,
* including arrays, implement the methods of this class.
翻译出来的意思就是,
类Object是类层次结构的根。
每个类都有Object类作为超类。
所有对象包括数组,实现此类的方法。
所以Object是没有父类的