O'Reilly logo

Learn Java for Android Development, Second Edition by Jeff Friesen

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

Appendix    A

Solutions to Exercises

Each of Chapters 1 through 14 closes with an “Exercises” section that tests your understanding of the chapter’s material. Solutions to these exercises are presented in this appendix.

Chapter 1: Getting Started with Java

  1. Java is a language and a platform. The language is partly patterned after the C and C++ languages to shorten the learning curve for C/C++ developers. The platform consists of a virtual machine and associated execution environment.
  2. A virtual machine is a software-based processor that presents its own instruction set.
  3. The purpose of the Java compiler is to translate source code into instructions (and associated data) that are executed by the virtual machine.
  4. The answer is true: a classfile’s ...

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