Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is Java?

The question may at first sound silly, but maybe it isn't at all.

  • Java is not the Java language, most people know that, since you can program Java with lots of other langauges like Scala or Groovy

  • Java is not a concrete VM implementation since there are other implementation out there, not only SUN's, Microsoft's or IBM's.

  • Java is not the class framework since many implementation add or leave out classes at will.

  • It isn't even that a common VM specification or even Java bytecode must be used, see Dalvik VM

  • Maybe it is just a set of principles they share, whatever this may be. It definitely is not "Write once, run everywhere" since this isn't the case for at least Dalvik and Microsoft VM/J#.

So the question is, what exactly is Java? Is there even an exact definition?

EDIT Lots of people seem to have the opinion that java only means the programming language. So a java-enabled mobile phone must be a phone which enables the user to use programs consisting of class files created with the java language only. If this would be true, the java virtual machine / java runtime environment / java development kit would be made for java only and other jvm languages would have their own corresponding xvm / xre / xdk.

like image 846
codymanix Avatar asked Nov 12 '10 16:11

codymanix


People also ask

What is Java in simple words?

Java is a widely used object-oriented programming language and software platform that runs on billions of devices, including notebook computers, mobile devices, gaming consoles, medical devices and many others. The rules and syntax of Java are based on the C and C++ languages.

For what is Java used for?

Developers use Java to construct applications in laptops, data centres, game consoles, scientific supercomputers, cell phones, and other devices. Java is the world's third most popular programming language, after Python and C – according to the TIOBE index, which evaluates programming language popularity.

What Java is and how it works?

Java is a high-level language, which represents logical computer concepts in a fashion that is easier for humans to understand than low-level machine code or assembly language. However, this means that in order to run on a machine, the code must be compiled into machine code or interpreted by a special-purpose machine.

What type of language is Java?

The Java™ Programming Language is a general-purpose, concurrent, strongly typed, class-based object-oriented language. It is normally compiled to the bytecode instruction set and binary format defined in the Java Virtual Machine Specification.


2 Answers

Java is the Java language, actually. Groovy, Scala et al compile down to equivalent bytecode that can run on the JVM, but they aren't Java.

Formally, I'd say that Java is the JLS.

like image 92
Andrzej Doyle Avatar answered Oct 15 '22 08:10

Andrzej Doyle


Java is a programming language. The syntax part.

like image 30
Luca Matteis Avatar answered Oct 15 '22 08:10

Luca Matteis