Java is crap.
It drags out all the incompetent stupid and lazy computer programmers.
You can write crap in
any language that I've ever seen, and I've seen many dozens. (Google "you can write FORTRAN in any language" for example.)
(Except, just possibly, Algol68. The language definition and compiler are so strict that if you manage, at long last, to get your code to actually compile, then the chances are that it does something useful.)