The Java programming language is...
General-purpose: It is designed to be used for writing software in a wide variety of application domains, and lacks specialized features for any specific domain.
Statically-typed: the compiler checks at compile time that variable types are respected. For example, if a method expects an argument of type
String, that argument must in fact be a string when the method is called.
Object-oriented: most things in a Java program are class instances, i.e. bundles of state (fields) and behavior (methods which operate on data and form the object's interface to the outside world).
Portable: It can be compiled on any platform with
javac and the resultant class files can run on any platform that has a JVM.
Java is intended to let application developers "write once, run anywhere" (WORA), meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.
Java code is compiled to bytecode (the
.class files) which in turn get interpreted by the Java Virtual Machine (JVM). In theory, bytecode created by one Java compiler should run the same way on any JVM, even on a different kind of computer. The JVM might (and in real-world programs will) choose to compile into native machine commands the parts of the bytecode that are executed often. This is called "Just-in-time (JIT) compilation".
There are three "editions" of Java defined by Sun / Oracle:
There is a separate topic on Java SE / EE / ME editions.
Each edition has multiple versions. The Java SE versions are listed below.
There is a separate topic on Installing Java (Standard Edition).
There are separate topics on:
Here are links to subjects to continue learning and understanding the Java programming language. These subjects are the basics of the Java programming to get you started.
While Java does not have any support for testing in the standard library, there are 3rd-party libraries that are designed to support testing. The two most popular unit testing libraries are:
1. In Versions section the end-of-life (free) date is when Oracle will stop posting further updates of Java SE to its public download sites. Customers who need continued access to critical bug fixes and security fixes as well as general maintenance for Java SE can get long term support through Oracle Java SE Support.
|Java SE Version||Code Name||End-of-life (free1)||Release Date|
|Java SE 9 (Early Access)||None||future||2017-07-27|
|Java SE 8||Spider||future||2014-03-18|
|Java SE 7||Dolphin||2015-04-14||2011-07-28|
|Java SE 6||Mustang||2013-04-16||2006-12-23|
|Java SE 5||Tiger||2009-11-04||2004-10-04|
|Java SE 1.4||Merlin||prior to 2009-11-04||2002-02-06|
|Java SE 1.3||Kestrel||prior to 2009-11-04||2000-05-08|
|Java SE 1.2||Playground||prior to 2009-11-04||1998-12-08|
|Java SE 1.1||None||prior to 2009-11-04||1997-02-19|
|Java SE 1.0||Oak||prior to 2009-11-04||1996-01-21|