Exam Code: 1Z0-809
Exam Questions: 469
Java SE 8 Programmer II
Updated: 25 Nov, 2026
Viewing Page : 1 - 47
Practicing : 1 - 5 of 469 Questions
Question 1

Untitled1-page69-image65What is the result?

Options :
Answer: A

Question 2

F: is accessible for reading and below is the directory structure for F:1. F:.2. └───A3.     └───B4.         └───C5.                 Book.java'Book.java' file is available under 'C' directory.Given code of Test.java file: 1. package com.udayan.ocp;2.  3. import java.nio.file.Path;4. import java.nio.file.Paths;5.  6. public class Test {7.     public static void main(String[] args) {8.         Path file = Paths.get("F:\\A\\B\\Book.java");9.         System.out.println(file.toAbsolutePath());10.     }11. }What will be the result of compiling and executing Test class?

Options :
Answer: A

Question 3

Given:Untitled1-page69-image101From what threading problem does the program suffer?

Options :
Answer: B

Question 4

Given the code fragments:class MyThread implements Runnable { private static AtomicInteger count = new AtomicInteger (0); public void run () { int x = count.incrementAndGet(); System.out.print (x+” “); }}andThread thread1 = new Thread(new MyThread());Thread thread2 = new Thread(new MyThread());Thread thread3 = new Thread(new MyThread());Thread [] ta = {thread1, thread2, thread3};for (int x= 0; x < 3; x++) { ta[x].start();}Which statement is true?

Options :
Answer: A

Question 5

Given code of Test.java file: 1. package com.udayan.ocp;2.  3. public class Test {4.     private static void m1() throws Exception {5.         throw new Exception();6.     }7.  8.     public static void main(String[] args) {9.         try {10.             m1();11.         } finally {12.             System.out.println("A");13.         }14.     }15. }What will be the result of compiling and executing Test class?

Options :
Answer: D

Viewing Page : 1 - 47
Practicing : 1 - 5 of 469 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.