SUN, now ORACLE does provide an in depth tutorial at their site. One of the best tutorial/sample code that they provide for any one interested in the technology. Tailor made for an ready to help yourself fast food.
Above is just an intro. But check out the sample code. Just it goes how in depth the SUN Teams had worked to make such an contribution in the industry like Java, When none of contemporary or predecessor could not get the market share.