Object class as super class in Java

前端 未结 6 1079
生来不讨喜
生来不讨喜 2020-12-06 05:51

Why is object class the super class in Java?

6条回答
  •  清歌不尽
    2020-12-06 06:18

    It provides a template for all the derived objects that programmers create. The key functionalities that may be required for every user-defined object are readily available this way.

    • Object locking (For concurrency-problem resolution)

    • Cloning

    • Hashcode generation

    To name the more important ones.

提交回复
热议问题