Owl Teach Yourself Java 2 in 21 Days Pro, Third Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS
ROGERS CADENHEAD

Day 2: The ABCs of Programming

Certification Practice

Each chapter of the book ends with a Certification Practice question that's comparable to what you could expect to be asked on a Java certification test. Here's the answer for chapter 2:

Answer (c) is correct.

Answer (a) is incorrect. The short and int data types cannot hold a number that large. A short variable can hold numbers from -32,768 to 32,767 and an int variable can hold numbers from -2,147,483,648 to 2,147,483,647.

Answer (b) is incorrect. The int data type holds numbers from -2,147,483,648 to 2,147,483,647.

Answer (d) is incorrect. The byte data type holds numbers from -128 to 127. Edit

Return to Day 2

HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS

Valid HTML 4.01!

Valid CSS!