Assess the CertsIQ’s updated 1Z0-808 exam questions for free online practice of your Java SE 8 Programmer I test. Our Java SE 1Z0 808 dumps questions will enhance your chances of passing the Oracle Certified Associate certification exam with higher marks.
Given this code for a Planet object:

Which statement is true about the switch statement?
What will be the result of compiling and executing Test class?
package com.udayan.oca;
public class Test {
static String msg; //Line 2
public static void main(String[] args) {
String msg; //Line 4
if(args.length > 0) {
msg = args[0]; //Line 6
}
System.out.println(msg); //Line 8
}
}
What will be the result of compiling and executing Test class?
package com.udayan.oca;
public class Test {
public static void main(String[] args) {
String str = "Java Rocks!";
System.out.println(str.length() + " : " + str.charAt(10));
}
}
What will be the result of compiling and executing Test class?
1. //Test.java
2. package com.udayan.oca;
3.
4. import java.io.FileNotFoundException;
5.
6. public class Test {
7. public static void main(String[] args) {
8. try {
9. System.out.println(1);
10. } catch (NullPointerException ex) {
11. System.out.println("ONE");
12. } catch (FileNotFoundException ex) {
13. System.out.println("TWO");
14. }
15. System.out.println("THREE");
16. }
17. }
© Copyrights CertsIQ 2026. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (CertsIQ). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the CertsIQ.