JavaScript won the war of running the same language on both sides, because it runs in the browser, and you can run any language you want on the server. You can't practically run any language you want on the browser, only one, and it's JavaScript, so it's not possible for Java to run on both sides now. And in case you didn't notice, people run JavaScript on the server all the time, because they can share the same frameworks and libraries and data structures on both sides, like easy server side rendering. The cost of developing and deploying and running and maintaining two different languages and implementations of everything and incompatible frameworks on each side is just too high, and a huge waste of energy and time and human effort. Java usage is declining and stagnating, and JavaScript/TypeScript usage is rising rapidly. And JavaScript's and TypeScript's future is not controlled by Larry Ellison.
https://experttal.com/blog/top-programming-language-trends-i...
>Top Programming Language Trends in 2023
>Java Won’t Be as Popular as It Was
>In a similar vein, Java — a language central to the emergence of the software industry as we know it today — increasingly appears to be past its prime.
>Java slipped out of the top spot on the TIOBE index — a position it had held for nearly two decades — a couple of years ago. As of 2023, there's every indication that Java won’t recover the top spot.
>Although Java will likely remain widespread over the coming year, it's hard to imagine it returning to its former stature as one of the most popular languages. On the contrary, we suspect Java will continue to decline in popularity over the coming year and beyond.
https://marketsplash.com/javascript-statistics/
>50+ JavaScript Statistics For 2023 Trends & Facts
>Microsoft introduced TypeScript in 2012 as an extension of JavaScript, incorporating optional typing. This adaptation retained the syntax and essence of JavaScript while implementing supplementary features essential for developers. The contrast between JavaScript and TypeScript is noteworthy, as the latter presents heightened productivity and simplified maintenance for expanding codebases.
>For this reason, TypeScript transcends being merely a fleeting JavaScript trend; it has evolved into an established language. The most recent survey from 2022 indicates that JavaScript stands as the most utilized programming language, boasting a considerable 78% adoption rate among developers. This survey stems from the State of JS Survey.