Skip to content
BENIBIX Learn

Java

Development🔤 LanguagesPopular Languages

A language that runs on any machine with a JVM. Big in banks and business software.

Think of it like

Think of it like a plug that fits any wall. You just need the right adapter in each land.

Example

A bank in Frankfurt runs its account system in Java. The same code runs on its old servers and its new cloud ones.

Why it matters

Lots of bank and office code runs on Java. People who can read it will be needed for years.

Definition

Java is a language built to run the same program on many kinds of machine. Code is turned into bytecode, which runs on the Java Virtual Machine, or JVM. Any computer with a JVM can run it. Sun Microsystems released it in 1995. Banks, big business systems and many Android apps are built with Java.

Example code

java
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
Even a greeting lives inside a class. That is the Java way.

Common mistake

Thinking Java and JavaScript are the same language. They only share part of a name.

Key takeaways

  1. 1
    Write once, run anywhere. The JVM hides the machine's details.
  2. 2
    Built around classes. Almost all code lives inside a class.
  3. 3
    Strict types. Each value has a type that gets checked.

Compare

Learn it properly