EXPERTY DESIGNED 1Z0-808 PRACTICE TEST

Oracle 1Z0-808 Exam Questions
Total Questions: 608
Java SE 8 Programmer I
Updated On: Feb 11, 2026
Page : 1-61
Question 1

Which of the following are Java Exception classes?

Select 3 options.

Options :
Answer: A,C,E

Question 2

Given the code fragment:

1Z0-808
What is the result?

Options :
Answer: B

Question 3

Given the code fragment:

1Z0-808
What is the result?

Options :
Answer: C

Question 4

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));

     }

}

Options :
Answer: B

Question 5

Consider below code of Test.java file:

1. package com.sampleproject.oca;

2.  

3. class Super {

4.     public String num = "10"; //Line n1

5. }

6.  

7. class Sub extends Super {

8.     protected int num = 20; //Line n2

9. }

10.  

11. public class Test {

12.     public static void main(String[] args) {

13.         Super obj = new Sub();

14.         System.out.println(obj.num += 2); //Line n3

15.     }

16. }

What will be the result of compiling and executing above code?

Options :
Answer: F

© Copyrights Oracledumps 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (Oracledumps). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the Oracledumps.