A computer is a general-purpose machine — hardware is the physical device, software (programs) tells it what to do. Java programs are software that run on any device with a JVM.
Car)Thousands of prebuilt classes (java.lang, java.util, java.io…) so you don't reinvent common functionality.
javac → .class bytecodejava interprets/JIT-compilesGlobal network of networks; the Web is the system of linked pages/apps that run over it.
Storage & computing power delivered as a service over the internet instead of on local machines.
Everyday devices (thermostats, wearables, cars) connected and exchanging data online.
Persistent, shared virtual/AR spaces where people interact as digital avatars.
AI models (LLMs) trained on huge text/code corpora that generate new, original content — text, explanations, and code — in response to a prompt.
| Command | Purpose |
|---|---|
javac Welcome.java | Compiles source code into bytecode (.class file) |
java Welcome | Runs a compiled class through the JVM |
java Welcome.java | Compiles & runs a single-file program in one step |
jshell | Opens Java's interactive REPL to test snippets instantly |
javadoc | Generates HTML API documentation from source comments |
jar | Packages compiled classes into a distributable .jar file |