So here is what I did -
I unzipped the contents of rt.jar into a folder called rt. Then, inside rt folder, I executed the following jar command
jar cf rt.jar *
This should create a jar file with the same classes as that in the original rt.jar file.
However, the file sizes of the two files are significantly different.
Original rt.jar -> 43.1 MB
Newly created rt.jar -> 20.6 MB
Note that the size of the unzipped contents for both the jar files is the same. This makes me think that the original rt.jar wasn't created using the jar command. So how was it created?