People said the same thing about COBOL. It was replaced anyway. You're using a really short version of "never".
The cool kids of the future ain't going to learn Java once companies move to a better technology. It may take decades, but eventually people will stop building new code in the language.
a) Java is a bad technology and it's not moving forward ("once companies move to a better technology")
b) new Java developers aren't being trained, including very young and bright ones, straight out of universities, and they don't enjoy Java
Both claims are false.