31.The && operator cannot be applied to two int operands (a1 and a2).
34.We need a set ofparentheses around b1.
37.There is no error.
5.14.5Debugging Area—Using Messages from the Java Compiler and Java JVM
40.The expression a = 31evaluates to an int,31.The if condition requires
a boolean expression.To fix the problem,replace
a = 31by a == 31.
6.14Exercises,Problems,and Projects
6.14.1Multiple 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.