EXPERTY DESIGNED 1Z0-808 PRACTICE TEST

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

Which of the following is a checked Exception?

Options :
Answer: D

Question 2

Consider below code of Test.java file:

1. package com.sampleproject.oca; 

2.  

3. public class Test {

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

5.         /*INSERT*/ x = 7, y = 200;

6.         System.out.println(String.valueOf(x + y).length());

7.     }

8. }

Which of the following options, if used to replace /*INSERT*/, will compile successfully and on execution will print 3 on to the console?

Select 3 options.

Options :
Answer: A,B,F

Question 3

Consider below codes of 3 java files:

1. //Super.java

2. package com.sampleproject.oca;

3.  

4. public interface Super {

5.     String name = "SUPER"; //Line n1

6. }

1. //Sub.java

2. package com.sampleproject.oca;

3.  

4. public interface Sub extends Super { //Line n2

5.  

6. }

1. //Test.java

2. package com.sampleproject.oca;

3.  

4. public class Test {

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

6.         Sub sub = null;

7.         System.out.println(sub.name); //Line n3

8.     }

9.

Which of the following statements is correct?

Options :
Answer: E

Question 4

Consider below code: 

1. //Test.java

2. package com.udayan.oca;

3.  

4. import java.time.LocalDate;

5.  

6. public class Test {

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

8.          LocalDate joiningDate = LocalDate.parse("2006-03-16");

9.          System.out.println(joiningDate.withDayOfYear(29));

10.      }

11. }

What will be the result of compiling and executing Test class?

Options :
Answer: B

Question 5

Consider below code:

1. //Test.java

2. package com.udayan.oca;

3.  

4. public class Test {

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

6.         StringBuilder sb = new StringBuilder(100);

7.         System.out.println(sb.length() + ":" + sb.toString().length());

8.     }

9. }

What will be the result of compiling and executing Test class?

Options :
Answer: B

© 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.