Quiz

Test your knowledge of the material covered in this chapter by answering the following questions.

Questions

1:When you compile a Java program, what are you doing?
  1. Saving it to disk

  2. Converting it into a form the computer can better understand

  3. Adding it to your program collection

2:What is a variable?
  1. Something that wobbles but doesn't fall down

  2. Text in a program that the compiler ignores

  3. A place to store information in a program

3:What is the process of fixing errors called?
  1. Defrosting

  2. Debugging

  3. Decomposing

Answers

A1: b. Compiling a program converts a .java file into a .class file or a set of .class files.
A2: c. Variables are one place to store information; later you'll learn about others such as arrays and constants. Weebles wobble but they don't ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.