HOT SPOTS
Sun Certified Programmer for the Java 2 Platform Quiz #1
Page 1 of 21
This practice quiz contains 20 questions, provided by Whizlabs Software.
Question 1:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}
- Prev
- Next >>