Smartly Prepare Exam with Free Online 1Z0-808 Practice Test

We offer the latest 1Z0-808 practice test designed for free and effective online Java SE 8 Programmer I certification preparation. It's a simulation of the real 1Z0-808 exam experience, built to help you understand the structure, complexity, and topics you'll face on exam day.

Exam Code: 1Z0-808
Exam Questions: 608
Java SE 8 Programmer I
Updated: 26 Aug, 2025
Viewing Page : 1 - 61
Practicing : 1 - 5 of 608 Questions
Question 1

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     }}

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

What will be the result of compiling and executing Test class?package com.udayan.oca; import java.util.ArrayList;import java.util.List; public class Test {     public static void main(String[] args) {         List list = new ArrayList();         list.add(100);         list.add(7);         list.add(50);         list.add(17);         list.add(10);         list.add(5);          list.removeIf(a -> a % 10 == 0);          System.out.println(list);     }}

Options :
Answer: A

Question 4

Given:1Z0-808and the code fragment:1Z0-808What is the result?

Options :
Answer: C

Question 5

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.         String [][] arr = { {"%", "$$"}, {"***", "@@@@", "#####"}};6.         for(String [] str : arr) {7.             for(String s : str) {8.                 System.out.println(s);9.                 if(s.length() == 4) //Line n110.                     break; //Line n211.             }12.             break; //Line n313.         }14.     }15. }What will be the result of compiling and executing Test class?

Options :
Answer: E

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

© Copyrights FreePDFQuestions 2025. 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.