🔤Java
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
Example code
java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}Common mistake
Key takeaways
- 1Write once, run anywhere. The JVM hides the machine's details.
- 2Built around classes. Almost all code lives inside a class.
- 3Strict types. Each value has a type that gets checked.