The primitive wrapper classes contain numerous static factory methods, like valueOf and toString. Unfortunately, the specs for these methods often promise that *new* objects are returned. One of the main advantages of static factories over constructors is that previously allocated objects with the same value can be returned instead.
-
Joe Darcy
-
Joe Darcy
- Votes:
-
0 Vote for this issue
- Watchers:
-
0 Start watching this issue
- Created:
- Updated:
- Resolved:
- Imported:
- Indexed: