Java in 21 Days (6th Edition) Day 4: Lists, Logic, and Loops
Other Books Previous Day Next Day
Notes and Corrections
- View the Certification Practice quiz solution
Certification answer: Answer (c) is correct. Because the switch statement does not contain any break statements and z equals 1, all three case statements are executed, making x equal 15.0.
Answers (a), (b), and (d) are incorrect.
- Page 96: If the NetBeans source code editor displays an error on line 3 of the HalfDollars application, you need to set the project to use Java 7. In the Projects pane, right-click Source Packages and choose Properties. In the Source/Binary Format drop-down, choose JDK 7 and click OK.