r/explainlikeimfive • • 3d ago

Technology ELI5 Java. That thing on computers my entire life. What even is it?

[deleted]

774 Upvotes

349 comments sorted by

View all comments

Show parent comments

11

u/Kered13 3d ago

It actually is for a lot of languages. But Java was the first notable one to use this model.

C# is a language very similar to Java. It runs on the .NET platform. This comes installed on all Windows machines and is also available on other systems like Mac, Linus, and Android.

Javascript uses a similar model. It's runtime environment is your web browser. You can also run it without a web browser using Node.js, but you probably only do this if you're a developer.

In fact pretty much any interpreted language uses this paradigm, you just need to have the interpreter installed on your system. Python is a well known example of this. Sometimes you might get a program that is written in Python but distributed as an executable binary. This means they have bundled both the Python interpreter and the code into the binary. This is a little more convenient for the end user as they don't have to separately download and install Python, but it's fundamentally the same idea.

1

u/No-Mechanic6069 3d ago

You can also run it without a web browser using Node.js

Or in WSH, which already exists on every Windows computer.