Which Java book?

I’m looking for a Java book, about good coding principles with examples. Amazon gives me this list and the most rated are “Java Cookbook” and “Effective Java”. Which one should I choose?

Advertisements