Skip to Main Content
Java 6 Illuminated: An Active Learning Approach, 2nd Edition
book

Java 6 Illuminated: An Active Learning Approach, 2nd Edition

by Julie Anderson, Herve J. Franceschi
February 2008
Intermediate to advanced content levelIntermediate to advanced
1288 pages
39h 39m
English
Jones & Bartlett Learning
Content preview from Java 6 Illuminated: An Active Learning Approach, 2nd Edition
16. Hello 3
Hello 4
Done
19. Number 3
Number 4
Other number
5.14.3 Fill In the Code
22. if ( a )
a = false;
else
a = true;
25. if ( b % c == 0 )
a = true;
else
a = false;
28. if ( a && b > 10 )
c++;
5.14.4 Identifying Errors in Code
31. The && operator cannot be applied to two int operands (a1 and a2).
34. We need a set of parentheses around b1.
37. There is no error.
5.14.5 Debugging Area—Using Messages from the Java Compiler and Java JVM
40. The expression a = 31 evaluates to an int, 31. The if condition requires
a boolean expression. To fix the problem, replace
a = 31 by a == 31.
6.14 Exercises,Problems,and Projects
6.14.1 Multiple Choice Exercises
1. the code runs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Kathy Walrath, Mary Campione, Alison Huml, Sharon Zakhour
Java Illuminated, 4th Edition

Java Illuminated, 4th Edition

Julie Anderson, Hervé J. Franceschi

Publisher Resources

ISBN: 9780763749637