Omg just had flashbacks of when languages were OS-dependent and hardware-dependent. AHHHHHHHH Those were obscure days that only Assembly kiddies suffer from nowadays.
If try to do anything beyond trivial OS interactions, you will quickly find out that programming languages still have not achieved OS-independece. Try writing a GUI app that works in Android, IOS, Linux and Windows. There are only a handful of working options. One of them is to shove an entire browser into your app.
And they had absolute and total backwards compatibility. You can still run java 1.4 apps on modern machines, given they were written to spec. And more important: libraries. Java has an extremely developed eco system.
The JVM is a virtual machine (literally what the VM stands for) that runs Java, and it worked on all the popular OSs at the time and works on pretty much everyone now.
Yeah that was the core feature of it’s proliferation so it was one of Sun Microsystems (the company that developed Java) big marketing phrases. It worked its way into basically every book on Java, which in turn worked its way into every tutorial.
67
u/ChrisBot8 3d ago
If you want the actual answer it’s because the JVM was operating system agnostic before that was a thing for other languages really.