O'Reilly logo

Java: A Beginner’s Tutorial, 4th Edition (Updated for Java SE 8) by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Answers

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required