After all, is Java a platform or a programming language?

Asked

Viewed 327 times

7

I see various materials referring to Java as a technology (platform) and others as a programming language.

  • 4

    https://answall.com/tags/java/info

2 answers

14


Both.

There is the java programming language and a platform that people call Java as well. It can be a little confusing, but almost always the distinction is not important. Anyway I think I’d better use Java Platform when you’re talking about the platform.

Platform is not necessarily a technology, the platform consists of several technologies.

The programming language is still a technology. Technology is knowledge, it is a tool that uses a certain knowledge. Java is not the only language used on the Java platform.

There is also a VM called Java Virtual Machine that is part of the platform.

  • 4

    It is also an island of Indonesia =D

  • 3

    It’s also a cafe

6

A good analogy is to compare with Microsoft . NET. When using . NET Framework you can program in several languages: C#, VB.NET, C++. All of them are compiled to CIL (Common Intermediate Language) which is the code that will effectively run on the virtual machine on . NET.

In Java (speaking of the platform), you can also program in several languages, some of them are: Java, Groovy, Scala, Jpython, Closure, etc. All these languages are compiled to Bytecode and will ultimately be executed in the same JVM (Java Virtual Machine).

Obviously, compilers change for each language, but as they all run in the same environment (after compiled), this facilitates (and greatly) the interoperability found in this type of solution.

In Groovy you can use in a transparent way the libraries written in Java. Similarly, libraries written in C# can be used in VB.NET.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.