It depends on what your console is doing (or something else to handle System.out ). System.out will distribute all the information just fine, and if your console does not attach much importance to U + 0000, then everything will be fine. However, many user interface controls will see this as a trailing character. This is not a Java “bug” - it is user interface control itself.
(Just for reference, running this code on the Windows command line in Windows 7 is right for me.)
Jon skeet
source share