Exam Code: 1Z0-808
Exam Questions: 608
Java SE 8 Programmer I
Updated: 14 Apr, 2026
Viewing Page : 1 - 61
Practicing : 1 - 5 of 608 Questions
Question 1

Examine the content of App.java:1Z0-808Which is true?

Options :
Answer: C

Question 2

What will be the result of compiling and executing Test class?1. package com.udayan.oca;2.  3. import java.util.ArrayList;4. import java.util.List;5.  6. public class Test {7.      public static void main(String[] args) {8.          List list = new ArrayList();9.          list.add(100);10.          list.add(200);11.          list.add(100);12.          list.add(200);13.          list.remove(new Integer(100));14.  15.          System.out.println(list);16.      }17. }

Options :
Answer: E

Question 3

Given:HPE6-A70What is the result?

Options :
Answer: D

Question 4

Given code of Test.java file:1. package com.sampleproject.oca;2.  3. public class Test {4.     public static void main(String[] args) {5.         try { //outer6.             try { //inner7.                 System.out.println(1/0);8.             } catch(ArithmeticException e) {9.                 System.out.println("INNER");10.             } finally {11.                 System.out.println("FINALLY 1");12.             }13.         } catch(ArithmeticException e) {14.             System.out.println("OUTER");15.         } finally {16.             System.out.println("FINALLY 2");17.         }18.     }19. }What will be the result of compiling and executing Test class?

Options :
Answer: D

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

Viewing Page : 1 - 61
Practicing : 1 - 5 of 608 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

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