-1

As every class extends object class and executes its default constructor ,i was wondering if is there any way to see what this object class looks like and where it exists.

saurabh kumar
  • 155
  • 5
  • 26

1 Answers1

2

The JDK is developed as OpenJDK. The sourc code is available as a Mercurial repository. Object is at

http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/9bb0496deeb0/src/share/classes/java/lang/Object.java

You can also use your IDE to view the source code of every class that is shipped with source code.