I think you have very short-sighted view of Java. Java has GraalVM. There's simply nothing even close in .NET world. And this is just about the core of the runtime.
Java is catching up quickly. I say that as a .NET-focused dev, who touches Java once a year.
I primarily develop Unity Applications and there is IL2CPP that compiles and runs IL code as C++. Also, I’ve developed in Java regularly over the years and it’s never a pleasure. C# is a better language. Java 8 introduced Stream API and it sucks. I hate how blotted every new Java Library is in size and API smell. Everything in Java land is over-engineered and Tomcat can die in a fire.
Java is catching up quickly. I say that as a .NET-focused dev, who touches Java once a year.