Question: Consider the following code segment. W Mark for Review What is printed as a result of executing this code segment? boolean a = true; boolean
Consider the following code segment. W Mark for Review What is printed as a result of executing this code segment? boolean a = true; boolean b = false; boolean temp = a; @ a = b; b = temp; 8 System.out.println(a); System.out.println(b); true true o true false @ false true false false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
