does Any == Object

前端 未结 4 1396
花落未央
花落未央 2021-01-07 16:25

The following code in kotlin:

Any().javaClass

Has value of java.lang.Object. Does that mean Any and Object<

4条回答
  •  鱼传尺愫
    2021-01-07 17:01

    In fact, there is no java.lang.Object in aspect of Kotlin lang, so you certainly cannot say Any is Object. You can only say Any takes the place of Object in Kotlin.

提交回复
热议问题