Java revision notes