JAVA Foundation series: Object class

1. Everything Is an Object

1. JVM when compiling the source code, in the face of no inheritance Object object, the compiler will default to specify a default parent class Object

2. Object relations and interfaces, the interface is inherited Object? Top-level interface does not inherit the parent class will implicitly declare a set of Object and method signature exactly the same way.

2. Object method

java.lang.Object

 

3. Objects Methods

java.util.Object

 

Guess you like

Origin www.cnblogs.com/haimishasha/p/11565307.html