Java doesn't make exploitable RCEs more or less possible than any other programming language. Or do you have something to back this up beyond the common "Java be bad" trope?
I don't know if it's better or worse than other languages but let's not pretend it's not a problem.