IO.println behavior on char[]

Ethan McCue ethan at mccue.dev
Sat Jun 28 10:39:50 UTC 2025


I was going through some examples in my writing and noticed that

IO.println(new char[] { 'a', 'b' });

will hit the Object overload of System.out.println and not the char[]
overload

This breaks a few of my examples https://javabook.mccue.dev/arrays/aliasing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20250628/39571a2c/attachment.htm>


More information about the amber-dev mailing list