By jsugrue
via java.dzone.com
Published: Nov 25 2008 / 07:47
I have over the past few months noticed that there is a fairly common fear of creating objects in Java. When I query the authors, it always seems to boil down to an attempt to create more performant code through avoiding garbage collection.
So why would one want to create more objects, anyway? Well, one good reason would be to get more readable code, e.g. through encapsulating an algorithm or using appropriate helper objects to express an algorithm more clearly.
Add your comment
Voters For This Link (18)
-
jsugrue -
javathreads -
areks -
Thierry.Lefort -
bloid -
mswatcher -
to38170 -
slackmg -
jexpert -
igobranco -
alashcraft -
mavroprovato -
rbygrave -
gubbes -
dzone@portinfo.com -
joshuatbrown.blogspot.com -
mgrev -
davneter