I find the constant claim that "Pascal is dead" to be somewhat annoying. This false claim constantly repeated ends up being a self-fulfilling profecy.
It's a fact the language no longer enjoys the high popularity it once had but, at least it can be used to create _real_ programs and, I really, genuinely mean _real_ programs.
The stuff written in Java is basically throw away code. It is written in Java because it wasn't worth the effort and financial investment to write it in a compiled language (C, C++, Pascal or other.)
Write Photoshop, Excel, Word, SolidWorks, etc in Java or Python... the result would simply be ridiculous.
People use Java and Python for the same practical reasons I use AWK. All AWK "programs" I have (and I probably have thousands, including countless duplicates) are simply throw away code I couldn't care less about.
A few apps come to mind that are written in Java and, should not be written in Java, among them, are the SQL access thing included with Oracle (I don't remember its name), Ghidra and GeoGebra. They are functionally useful but, brutally handicapped by being implemented in an inferior language that caters to "programmers" addicted to instant gratification and need to have huge libraries of algorithms because it's unlikely they could code their own, optimized for its use, that actually works.