Learn java thread.