That's not true at all, and misses the whole collection of technical reasons Java became one of most successful anf popular platforms in history, and why it's still being adopted for other applications and platforms, including those controlled by Go's main proponent: Google.
It might be trendy or fashionable to poopoo on Java, but that criticism isn't driven by technical arguments.
Well, there are plenty of other languages that are just as capable as Java, they just came later.
I just feel like I've been lied to in University. Java was presented as the silver bullet in University. "It runs anywhere and models the real world". "In Java, you can't compare apples and oranges!". Turns out you can, if someone implements an AppleOrangeComparator. Great.
It might be trendy or fashionable to poopoo on Java, but that criticism isn't driven by technical arguments.