Java is een high-level, statically-typed, object-oriented taal ontworpen om platform-onafhankelijk te zijn. De beroemde slogan — "write once, run anywhere" (WORA) — vat het kernkenmerk samen: gecompileerd Java draait op elk apparaat met een JVM, zonder hercompilatie.
Hoe WORA werkt: compileren naar bytecode, niet naar native code
Java source (.java)
│ javac (compiler)
▼
Bytecode (.class) — platform-INDEPENDENT intermediate code
│ JVM (Java Virtual Machine) interprets/JIT-compiles it
▼
Runs on Windows / Linux / Mac — the SAME bytecode, any platform with a JVM
