Joshua Bloch Joshua Bloch > Quotes


Joshua Bloch quotes (showing 1-4 of 4)

“One advantage of static factory methods is that, unlike constructors, they have names.”
Joshua Bloch, Effective Java Programming Language Guide
“A second advantage of static factory methods is that, unlike constructors, they are not required to create a new object each time they're invoked.”
Joshua Bloch, Effective Java Programming Language Guide
“can be chained. Here's how the client code looks: NutritionFacts cocaCola = new NutritionFacts.Builder(240, 8).   calories(100).sodium(35).carbohydrate(27).build();”
Joshua Bloch, Effective Java Programming Language Guide
“Builder pattern is more verbose than the telescoping constructor pattern, so it should be used only if there are enough parameters, say, four or more.”
Joshua Bloch, Effective Java Programming Language Guide


All Quotes | Add A Quote
Play The 'Guess That Quote' Game