Owl Teach Yourself Java in 24 Hours, Fifth Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS
ROGERS CADENHEAD

Hour 5: Storing and Changing Information in a Program

Online Interactive Learning Lab

How to create the PlanetWeight application.

Hour 5 Quiz

Question 1. What do you call a group of statements that is contained with an opening bracket and a closing bracket?

1.a. A block statement

1.b. Groupware

1.c. Bracketed statements

The grouped statements are called a block statement or a block.

Question 2. A boolean variable is used to store true or false values.

2.a. True

2.b. False

2.c. No, thanks. I already ate.

true and false are the only answers a boolean variable can store.

Question 3. What characters cannot be used to start a variable name?

3.a. A dollar sign

3.b. Two forward slash marks (//)

3.c. A letter

Variables can start with a letter, a dollar sign ($), or an underscore character (_). If you started a variable name with two slash marks, the rest of the line would be ignored because the slash marks are used to start a comment line.

Notes and Corrections

  • None.

Source Files

Reader Questions

  • None.

Activities

   
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / PREVIOUS HOUR / NEXT HOUR / THANKS

Search terms used to find this page: Java programming, teach yourself, 24 hours, how to, learn, Sams, Macmillan, Java2, JDK1.5, Java 1.5, JDK 1.5, SDK1.5, Java 2 SDK 1.5, SDK 1.5, Java 2 version 1.5, J2SE 1.5, J2SE 5, Java 2 Standard Edition 1.5, Java 2 Standard Edition 5, Java 2 SDK, Java SDK, Rogers Cadenhead, tutorial, hands-on, source code, code, javac, java, appletviewer, help, learning, applet, application, Java Plug-in, plugin, Swing, GUI, interface, Java2D, IO, Java Web Start, games, novice, beginner, neophyte, rookie

Valid HTML 4.01!

Valid CSS!