An Overview of the Modern Java Programming Language
Java is a high-level, general-purpose programming language, originally based on C/C++. It is designed to be an object-oriented programming language from ground up.
Java was one of the first most successful languages running on a virtual machine (JVM) on top of different native machine architectures. Its motto is "write once, run anywhere", claiming that compiled Java code can run on all platforms that support Java without the need to recompile. In practice, however, this slogan does not always hold true.
Java is currently one of the most popular programming languages for building server side Web applications.
Java has 6-month and 2 year interleaved release cycles, and the current LTS version is Java 17, released in the second half of 2021.
Java Main Features
- Java is a class-based object-oriented programming language.
- Java includes classes and interfaces.
- Java programs are organized into modules (since Java 9).
- Java supports concurrent programming via threads and other low-level constructs.
- Java runtime (JVM) supports garbage collection.
- Java supports streaming API (since Java 8).
- Java supports generics (parametrized types) since Java 5.
- Java supports exception handling (runtime and checked exceptions).
- Java now supports pattern matching in switch, newly introduced in Java 17.
Hello World in Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
More on Hello World in Java
If you are interested in finding out more about the Java programming language, then here's an explanation of the Hello World program in Java in a little more detail:
- Hello World (Java): Java Hello World - A quick explanation
C C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript