Chapter 1: Getting Started
1.What is a compiler?
A compiler is a computer program that converts program source code into an executable file or an intermediate format such as bytecode.
2. How is Java different from traditional programming?
In traditional programming, the source code is compiled into an executable file that is native to the target operating system. Therefore, the executable can only run on Windows or Linux. In Java, the source code is compiled into bytecode, which can only be run by a Java Virtual Machine (JVM). Since JVMs are available in many operating systems, the same bytecode can run on multiple operating systems, hence the term cross-platform or platform-independence.
3. What is bytecode?
Bytecode is a set of instructions ...