Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
Creating Byte objects with new Byte(...) creates a new object, while Byte.valueOf(...) can be cached (and is actually cached in most if not all JVMs) thus reducing GC overhead.