Why does every object in Java implicitly extend java.lang.Object class?

前端 未结 10 2561
青春惊慌失措
青春惊慌失措 2020-11-29 04:21

I have been programming in Java for quite some time, but when I tried to explain what an java.lang.Object class is to a friend, I could not come up with more th

10条回答
  •  渐次进展
    2020-11-29 05:14

    Object class is the most super class of java programming, It has predefined methods according to types, you can use those methods. & you don't need to extends object class anymore & anywhere it's implicitly there

提交回复
热议问题