This might be more technical than what's needed for the SCJA exam, but here's a good reference to skim for details (and you might want to skip to the end summary first): Programming Sockets and RMI: A Java Tutorial.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org