IO.println behavior on char[]

Brian Goetz brian.goetz at oracle.com
Sun Jun 29 15:51:58 UTC 2025



> I agree,
> arrays are fully weird in Java, they don't behave like proper objects 
> (no equals/hahCode/toString), they have a weird hierarchy, they are 
> always mutable and they do not work properly with generics too.
>
> So they are not simple to use, they are low level primitives, not 
> something you do not want introduce early in the learning process.

Preach it, brother!

I understand the tendency to want to teach "from the ground up", but 
starting with arrays (like with static methods) is just teaching habits 
that need to be unlearned.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20250629/1a40f0f7/attachment.htm>


More information about the amber-dev mailing list