The world "primarily" is important here. Sure, you _can_ use Java for embedded and even real-time stuff. Some games are written in Java, etc. But no one would say that Java is the primary language of choice in such domains.
But, yes, obviously it can't be used for systems where latency is a matter of life and death, like operating the breaks on a car.
https://www.quora.com/The-license-agreement-of-Java-says-You...