Java is a high-level, statically-typed, object-oriented language designed to be platform-independent. Its famous slogan — "write once, run anywhere" (WORA) — captures its core feature: compiled Java runs on any device that has a JVM, without recompilation.
How WORA works: compile to bytecode, not 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
