3 ms·
java.lang.Object is just part of the VM. Same thing with native methods.
by seanmcdirmid 10y ago
java.lang.Object is just part of the VM. Same thing with native methods.
- 0x0 10y agoWhile many of the methods in java.lang.Object have a native implementation, there are still other methods that do sport a pure java implementation: http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/tip/src/share/classes/java/lang/Object.java http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/tip/src/share/...
- seanmcdirmid 10y agoSure, but...if you look at the JVMS, there are a lot of special cases concerning java.lang.Object to help with bootstrapping.