For this example I am going to refer to a POJO thatI created in another post: Objects: equals() + hashCode() + toString()
Open up a command prompt, navigate to the directory where the SoccerPlayer.java file is located and run the following commands:
- Compile the source code by typing javac *.java
- Run the Java Class File Disassembler by typing javap SoccerPlayer
You should get the following:
Notice how it states that SoccerPlayer extends java.lang.Object but we did not have to type that in our source file because by default every class in Java IS-A Object