See you in ten years! We're a hop, skip and a jump from one click automated conversion from every legacy Java app to web and electron desktop compatible code and we can just retire Java entirely. in 2025, Java is not the most performant. It does not run in the most places. it is not the easiest to write or reason about. its advantage over anything else is momentum and it's losing that too.
React is just a formalizatio of a UI update pattern that exists in every app ever made except the ones that are bad. Source: written a lot of java and nobody is currently paying enough to make it worth doing again.