Introduction To Java Class 9
Introduction To Java Class 9
When a Java program is compiled using the Java compiler (javac), it is not directly converted into machine
code. Instead, it is converted into an intermediate code called Bytecode. Bytecode is a set of instructions that
can be executed by the Java Virtual Machine (JVM). This makes Java programs more portable and secure.
The Java Virtual Machine (JVM) is responsible for interpreting or executing the Bytecode generated by the
compiler. The JVM reads the bytecode and converts it into machine-specific code at runtime. This makes
Java a platform-independent language because the same bytecode can run on any system that has a JVM.
Reserved words (also called keywords) are predefined words in Java that have special meaning and cannot
Examples: class, public, static, void, int, new, if, else, return.
Java is platform-independent because the Java compiler converts code into Bytecode, which is not tied to
any specific operating system. The Bytecode is then executed by the JVM, which is available for various
platforms like Windows, Mac, or Linux. This allows Java programs to run on any platform with a compatible
Introduction to Java - Class 9 ICSE
JVM installed.