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 not a valid array declaration?

Options :
Answer: A

Question 2

Given:

1Z0-808
What is the result?

Options :
Answer: B

Question 3

Which of the following is a checked Exception?

Options :
Answer: D

Question 4

Consider below codes of 3 java files:

1. //M.java

2. package com.sampleproject.oca;

3.  

4. public class M {

5.     public void printName() {

6.         System.out.println("M");

7.     }

8. }

1. //N.java

2. package com.sampleproject.oca;

3.  

4. public class N extends M {

5.     public void printName() {

6.         System.out.println("N");

7.     }

8. }

1. //Test.java

2. package com.sampleproject.oca.test;

3.  

4. import com.sampleproject.oca.*;

5.  

6. public class Test {

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

8.         M obj1 = new M();

9.         N obj2 = (N)obj1;

10.         obj2.printName();

11.     }

12. }

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

Options :
Answer: C

Question 5

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 str1 = " ";

         boolean b1 = str1.isEmpty();

         System.out.println(b1);

         str1.trim();

         b1 = str1.isEmpty();

         System.out.println(b1);

     }

}

Options :
Answer: A

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