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

Hour 11: Describing What Your Object is Like

Online Interactive Learning Lab

How to create the VirusTester application and the related Virus class.

Hour 11 Quiz

Question 1. In a Java class, a method is an example of what?

1.a. attributes

1.b. statements

1.c. behavior

A method is made up of statements, but it's an example of behavior.

Question 2. If you want to make a variable a class variable, what statement must you use when it is created?

2.a. new

2.b. public

2.c. static

If the static statement is left off, the variable is an object variable instead of a class variable.

Question 3. What is the name for the part of a program in which a variable lives?

3.a. Its nest

3.b. The scope

3.c. Variable valley

The compiler fails with an error when a variable is used outside of its scope.

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!