Java in 21 Days (7th Edition) Day 21: Writing Android Apps for Java

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

Home Feedback Other Books Previous Day Next Day

Notes and Corrections

  • View the Certification Practice quiz solution
  • Certification answer: Answer (b) is correct. The case 1 statement is not executed because c is equal to the character '1', not the integer value 1. The case 2 statement is not executed either, so the only statement executed is the default, which increments the value of x by 1.

    Answers (a), (c), and (d) are incorrect.

Source Files

Activities