There is no such constant and for good reason IMO.
Why use a constant primarily in your example?
String musician = "Lisa" + Character.SPACE + "Coleman" ;
less readable than
String musician = "Lisa Coleman";
or even
String musician = "Lisa" + ' ' + "Coleman";
Therefore, I think this is not for reasons of readability.
I assume that you want the constant not to repeat in several parts of the code. But using Character.SPACE instead of ' ' everywhere does not result in fewer repetitions. Only more verbose and less readable code.
So you are assuming that you want to change a constant value in one place and change it everywhere. But using the built-in Character.SPACE constant will not allow you to achieve this goal. You will still need your own constant, and its name should not be a value, but a value for :
private static final char FIRST_NAME_LAST_NAME_SEPARATOR = ' ';
Now there is a good reason to use this constant: if you later decide to use a tab instead of a space, you can change the value of the constant and recompile all your code.
source share