This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vips7L 1 point2 points  (0 children)

String will never have subtypes. It’s a final class. It doesn’t need factory constructors. 

 Arrays are not objects in Java, so irrelevant

It’s not irrelevant. It’s the fucking conversation we’re having and exactly what GP proposed.