# Java

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

**Field:** Software Development  
**Category:** Languages

## Think of it like

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

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [JavaScript](https://learn.benibix.com/term/development/javascript)
- [C#](https://learn.benibix.com/term/development/c-sharp)
- [Kotlin](https://learn.benibix.com/term/development/kotlin)
- [Compiled Language](https://learn.benibix.com/term/development/compiled-language)
- [JUnit](https://learn.benibix.com/term/development/junit)
- [Apache Maven](https://learn.benibix.com/term/development/apache-maven)
- [Java Virtual Machine (JVM)](https://learn.benibix.com/term/development/java-virtual-machine)

## Told apart from

- [JavaScript vs Java](https://learn.benibix.com/compare/javascript-vs-java): They share half a name and nothing else. JavaScript runs in the browser; Java runs on its own JVM, often on servers.

## Taught in

- [Python, Java and C#](https://learn.benibix.com/learn/development-languages/python-java-and-c-sharp): Programming Languages, 7/12

---

Source: https://learn.benibix.com/term/development/java
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
