What Is Java?
What this topic covers
Explain Java’s core features and where Java applications are used. Describe how compiling source code to bytecode lets compatible JVMs run it across platforms.
Why can one compiled Java program run on Windows and Linux without changes?
Java source is compiled to bytecode, and any machine with a compatible Java Virtual Machine (JVM) can run that bytecode. The JVM translates the bytecode for the local operating system, so the same .class file works on each platform. The compiled file is not tied to one operating system, which is the platform independence Java is known for.