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

Consider below code of Test.java file:1. package com.sampleproject.oca;2.  3. class Super {4.     public String num = "10"; //Line n15. }6.  7. class Sub extends Super {8.     protected int num = 20; //Line n29. }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 n315.     }16. }What will be the result of compiling and executing above code?

Options :
Answer: F

Question 2

Which two statements are true? (Choose two.)

Options :
Answer: A,B

Question 3

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

Question 4

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

Options :
Answer: C

Question 5

Given:1Z0-808And the code fragment:1Z0-808Which code fragment, when inserted at line 14, enables the code to print Mike Found?

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.