If you are curious about implementation of standard classes you can always have a look at the source code.
All standard classes of java are open source.

For example, you could start here:
GC:...