1z1-808 Exam Question 286
Given the code fragment:

What is the result?

What is the result?
1z1-808 Exam Question 287
Given the code fragment:

Which three lines fail to compile?

Which three lines fail to compile?
1z1-808 Exam Question 288
Given:
public class Test {
public static void main(String[] args) {
int day = 1;
switch (day) {
case "7": System.out.print("Uranus");
case "6": System.out.print("Saturn");
case "1": System.out.print("Mercury");
case "2": System.out.print("Venus");
case "3": System.out.print("Earth");
case "4": System.out.print("Mars");
case "5": System.out.print("Jupiter");
}
}
}
Which two modifications, made independently, enable the code to compile and run?
public class Test {
public static void main(String[] args) {
int day = 1;
switch (day) {
case "7": System.out.print("Uranus");
case "6": System.out.print("Saturn");
case "1": System.out.print("Mercury");
case "2": System.out.print("Venus");
case "3": System.out.print("Earth");
case "4": System.out.print("Mars");
case "5": System.out.print("Jupiter");
}
}
}
Which two modifications, made independently, enable the code to compile and run?
1z1-808 Exam Question 289
Given the code fragment:

What is the result?

What is the result?
1z1-808 Exam Question 290
Given the following code: What is the output?


