The distinction between String and int in Java is not explicit, certainly not to a beginner; maybe other classes are because you have to create them with new, but it's not obvious that string literals result in a different kind of thing with different rules than integer literals.
Regardless, none of that changes the fact that it's a bad design decision, because people regularly get it wrong.
Regardless, none of that changes the fact that it's a bad design decision, because people regularly get it wrong.