java Programming Glossary: bloch
Why aren't Java Collections remove methods generic? http://stackoverflow.com/questions/104799/why-arent-java-collections-remove-methods-generic generics collections share improve this question Josh Bloch and Bill Pugh refer to this issue in Java Puzzlers IV The Phantom.. the Clone and Revenge of The Shift Google TechTalk . Josh Bloch says 6 41 that they attempted to generify the get method of..
what is the difference between 'super' and 'extends' in Java Generics [duplicate] http://stackoverflow.com/questions/1910892/what-is-the-difference-between-super-and-extends-in-java-generics
How to properly override clone method? http://stackoverflow.com/questions/2326758/how-to-properly-override-clone-method clone Most people agree that Java's clone is broken. Josh Bloch on Design Copy Constructor versus Cloning If you've read the..
Is there a performance difference between a for loop and a for-each loop? http://stackoverflow.com/questions/256859/is-there-a-performance-difference-between-a-for-loop-and-a-for-each-loop this question From Item 46 in Effective Java by Joshua Bloch The for each loop introduced in release 1.5 gets rid of the..
How to effectively copy an array in java? http://stackoverflow.com/questions/2589741/how-to-effectively-copy-an-array-in-java copy an array in java The toArray method in ArrayList Bloch uses both System.arraycopy and Arrays.copyOf to copy an array..
“using” keyword in java http://stackoverflow.com/questions/2943542/using-keyword-in-java with resources statement The original proposal from Joshua Bloch Update Java 7 has been out for some time and Eclipse Indigo..
Why does int num = Integer.getInteger(“123”) throw NullPointerException? http://stackoverflow.com/questions/3123349/why-does-int-num-integer-getinteger123-throw-nullpointerexception in Return of the Puzzlers Schlock and Awe TS 5186 Josh Bloch and Neal Gafter's 2009 JavaOne Technical Session presentation...
Interfaces with static fields in java for sharing 'constants' http://stackoverflow.com/questions/320588/interfaces-with-static-fields-in-java-for-sharing-constants use as their own. But don't just take my word for it Josh Bloch also says it's bad The constant interface pattern is a poor..
What's wrong with overridable method calls in constructors? http://stackoverflow.com/questions/3404301/whats-wrong-with-overridable-method-calls-in-constructors less pleasant to use What does true mean here What's 13 . Bloch recommends using a builder pattern which would allow you to..
About Java cloneable http://stackoverflow.com/questions/4081858/about-java-cloneable use a copy constructor. See here for the views of Josh Bloch about cloning with Cloneable which explains the many drawbacks..
If profiler is not the answer, what other choices do we have? http://stackoverflow.com/questions/4387895/if-profiler-is-not-the-answer-what-other-choices-do-we-have watching the presentation Performance Anxiety of Joshua Bloch I read the paper he suggested in the presentation Evaluating..
Avoid synchronized(this) in Java? http://stackoverflow.com/questions/442564/avoid-synchronizedthis-in-java form of synchronized this are considered if you quote Bloch or other authorities on the subject don't leave out the parts..
for loop optimization http://stackoverflow.com/questions/6093537/for-loop-optimization each Performance From Item 46 in Effective Java by Joshua Bloch The for each loop introduced in release 1.5 gets rid of the..
Java: checked vs unchecked exception explanation http://stackoverflow.com/questions/6115896/java-checked-vs-unchecked-exception-explanation still not quite sure how to use them properly. Joshua Bloch in Effective Java said that Use checked expections for recoverable.. and a lot of bad code. The general principle is stated by Bloch you quoted a part of it . And the general principle is to rethrow..
What is an efficient way to implement a singleton pattern in Java? http://stackoverflow.com/questions/70689/what-is-an-efficient-way-to-implement-a-singleton-pattern-in-java this question Use an enum public enum Foo INSTANCE Joshua Bloch explained this approach in his Effective Java Reloaded talk..
What are the pitfalls of a Java noob? [closed] http://stackoverflow.com/questions/822768/what-are-the-pitfalls-of-a-java-noob find a few screencasts on the web. Periodically Joshua Bloch and Neal Gafter like to present a bunch of innocuous looking.. take a look at Effective Java by the aforementioned Joshua Bloch which has a wealth of decent advice on how to go about designing..
How do I copy an object in Java? http://stackoverflow.com/questions/869033/how-do-i-copy-an-object-in-java If you are going to do that read at least what Joshua Bloch has to say about it in Effective Java . share improve this..
|