Java in 21 Days (8th Edition) Day 2: The ABCs of Programming

The cover of Teach Yourself Java in 21 Days (8th Edition) by Rogers Cadenhead

Home Feedback Other Books Previous Day Next Day

Notes and Corrections

  • View the Certification Practice quiz solution
  • Certification answer: 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.

Source Files

Activities