O'Reilly logo

Java: A Beginner's Guide, Seventh Edition, 7th Edition by Herbert Schildt

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

Images

Appendix A

Answers to Self Tests

Chapter 1: Java Fundamentals

1.   What is bytecode and why is it important to Java’s use for Internet programming?

Bytecode is a highly optimized set of instructions that is executed by the Java Virtual Machine.

Bytecode helps Java achieve both portability and security.

2.   What are the three main principles of object-oriented programming?

Encapsulation, polymorphism, and inheritance.

3.   Where do Java programs begin execution?

Java programs begin execution at main( ).

4.   What is a variable?

A variable is a named memory location. The contents of a variable can be changed during the execution of a program. ...

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