Before focusing on memory performance (which you can measure with a profiler, by the way) I would go with correctness. Using an array to wrap a single value just because an array is technically an object is working around the language. The correct wrap type for a
char
is Character
. That's what those classes (Integer
, Double
, Character
) etc. are for.