Java Books—I
core Java, by Gary Cornell and Cay S. Horstmann, offers detailed coverage of the whole language and packages for advanced programmers. Also Volume 2 gives good coverage of advanced topics such as JDBC, RMI, JavaBeans and security. The 4th edition includes the Swing set and Java 2.
Java, How to Program, by Deitel and Deitel, Prentice-Hall, starts with beginning programming concepts and progresses rapidly through Java language. It has the most programming exercises and also has companion teaching multimedia books. The third edition has Swing Set and also the advanced API’s.