Java is a programming language that allows developers to write once and deploy everywhere -– from high-end gaming desktops to smartphones. Its OS-agnostic and widespread nature is one of its strongest ...
I don't know of any books, but I wrote a 2d game in Java which I lifted from download from the Java Boutique website. At least in 2001 there were tons of games and you could download the source code.