为什么对象类在Java中是超类 [英] Why Object class is Superclass in java

查看:90
本文介绍了为什么对象类在Java中是超类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么对象类是Java中的超类,昨天我进行了一次采访,采访者问了我一些问题.

Why object Class is a super class in java yesterday i had one interview and the interviewer asked me the questions.

推荐答案

因为Object类位于java.lang包中,位于类层次结构树的顶部.

Because the Object class, in the java.lang package, sits at the top of the class hierarchy tree.

这篇关于为什么对象类在Java中是超类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆