| java Programming Glossary: bloch'sWhy is the clone() method protected in java.lang.Object? http://stackoverflow.com/questions/1138769/why-is-the-clone-method-protected-in-java-lang-object  i.getClass .getMethod clone .invoke i Citation From Josh Bloch's Effective Java The Cloneable interface was intended as a mixin.. 
 Implementing the singleton pattern in Java http://stackoverflow.com/questions/2008912/implementing-the-singleton-pattern-in-java  to implement singletons in Java I would recommend Joshua Bloch's Effective Java way of implementing them public class Singleton.. 
 Good reasons to prohibit inheritance in Java? http://stackoverflow.com/questions/218744/good-reasons-to-prohibit-inheritance-in-java  question   Your best reference here is Item 15 of Joshua Bloch's excellent book Effective Java called Design and document for.. 
 Java generics: Collections.max() signature and Comparator http://stackoverflow.com/questions/2248390/java-generics-collections-max-signature-and-comparator  generics comparator   share improve this question   Josh Bloch's mnemonic PECS is useful here. It stands for Producer extends.. 
 Difference between Inheritance and Composition http://stackoverflow.com/questions/2399544/difference-between-inheritance-and-composition  without violating the API . I highly recommend Josh Bloch's book Effective Java 2nd Edition Item 16 Favor composition over.. 
 Difference between a deprecated and a legacy API? http://stackoverflow.com/questions/2873254/difference-between-a-deprecated-and-a-legacy-api  where the word deprecated and legacy appear in the book. Bloch's message is clear here Deprecated methods e.g. Thread.stop are.. 
 Why does Java's hashCode() in String use 31 as a multiplier? http://stackoverflow.com/questions/299304/why-does-javas-hashcode-in-string-use-31-as-a-multiplier  hash   share improve this question  According to Joshua Bloch's Effective Java a book that can't be recommended enough and which.. 
 Using Joda Date & Time API to parse multiple formats http://stackoverflow.com/questions/3307330/using-joda-date-time-api-to-parse-multiple-formats  .parseDateTime datePart This works but contravenes Joshua Bloch's advice from Effective Java 2nd Edition Item 57 Use exceptions.. 
 Java map with values limited by key's type parameter http://stackoverflow.com/questions/416540/java-map-with-values-limited-by-keys-type-parameter  this question   You're not trying to implement Joshua Bloch's typesafe hetereogeneous container pattern are you Basically.. 
 Generating all permutations of a given string http://stackoverflow.com/questions/4240080/generating-all-permutations-of-a-given-string 
 Does use of final keyword in Java improve the performance? http://stackoverflow.com/questions/4279420/does-use-of-final-keyword-in-java-improve-the-performance  of final in my experience although as a supporter of Josh Bloch's design for inheritance or prohibit it rule of thumb I should.. 
 Why do people still use primitive types in Java? http://stackoverflow.com/questions/5199359/why-do-people-still-use-primitive-types-in-java  jdk1.5   share improve this question   In Joshua Bloch's Effective Java Item 5 Avoid creating unnecessary objects he.. 
 Heterogeneous container to store genericly typed objects in Java http://stackoverflow.com/questions/6139325/heterogeneous-container-to-store-genericly-typed-objects-in-java  typed objects in Java  I am trying to follow Joshua Bloch's typesafe hetereogeneous container pattern from Effective Java.. I have to perform a unchecked cast. In Josh Bloch's container he performs a safe cast but in my case I can't see.. Nick.  java generics   share improve this question   In Bloch's version Class.cast is used which is implemented as return T.. 
 What is the difference between ? and Object in Java generics? http://stackoverflow.com/questions/678822/what-is-the-difference-between-and-object-in-java-generics  foobar List extends InputStream ms ... By the way Joshua Bloch's Effective Java is an excellent resource when you'd like to understand.. 
 What does the “+=” operator do in Java? http://stackoverflow.com/questions/7456462/what-does-the-operator-do-in-java  says 'cannot convert from double to int' Quote from Joshua Bloch's Java Puzzlers ... compound assignment expressions automatically.. 
 Efficiency of Java “Double Brace Initialization”? http://stackoverflow.com/questions/924285/efficiency-of-java-double-brace-initialization  of an anonymous inner class . As an added note if Joshua Bloch's Collection Literals proposal for Project Coin goes through we.. 
 Java Serialization with non serializable parts http://stackoverflow.com/questions/95181/java-serialization-with-non-serializable-parts  this question   As someone else noted chapter 11 of Josh Bloch's Effective Java is an indispensible resource on Java Serialization... 
 |