Free Oracle 1Z0-809 Exam Questions

Absolute Free 1Z0-809 Exam Practice for Comprehensive Preparation 

  • Oracle 1Z0-809 Exam Questions
  • Provided By: Oracle
  • Exam: Java SE 8 Programmer II
  • Certification: Oracle Java
  • Total Questions: 469
  • Updated On: Jul 25, 2026
  • Rated: 4.9 |
  • Online Users: 938
Page No. 1 of 94
Add To Cart
  • Question 1
    • Given code of Test.java file: 

      1. package com.udayan.ocp;

      2.  

      3. public class Test {

      4.     private static void div(int i, int j) {

      5.         try {

      6.             System.out.println(i / j);

      7.         } catch(ArithmeticException e) {

      8.             throw (RuntimeException)e;

      9.         }

      10.     }

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

      12.         try {

      13.             div(5, 0);

      14.         } catch(ArithmeticException e) {

      15.             System.out.println("AE");

      16.         } catch(RuntimeException e) {

      17.             System.out.println("RE");

      18.         }

      19.     }

      20. }

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


      Answer: A
  • Question 2
    • Given:
      3
      and the code fragment:
      4
      What is the result?

      Answer: B
  • Question 3
    • Given code of Test.java file: 

      1. package com.udayan.ocp;

      2.  

      3. import java.util.stream.Stream;

      4.  

      5. public class Test {

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

      7.         Stream stream = Stream.of("d", "cc", "bbb", "aaaa");

      8.         stream.sorted().forEach(System.out::println);

      9.     }

      10. }

      Which of the following needs to be done, so that output is: 

      d

      cc

      bbb

      aaaa


      Answer: B
  • Question 4
    • Given code of Test.java file: 

      1. package com.udayan.ocp;

      2.  

      3. import java.util.ArrayDeque;

      4. import java.util.Deque;

      5.  

      6. public class Test {

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

      8.         Deque deque = new ArrayDeque<>();

      9.         deque.push(new Boolean("abc"));

      10.         deque.push(new Boolean("tRuE"));

      11.         deque.push(new Boolean("FALSE"));

      12.         deque.push(true);

      13.         System.out.println(deque.pop() + ":" + deque.peek() + ":" + deque.size());

      14.     }

      15. }

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


      Answer: A
  • Question 5
    • Given the code fragment:
      Untitled1-page69-image50
      You have been asked to define the ProductCode class. The definition of the ProductCode class must
      allow c1 instantiation to succeed and cause a compilation error on c2 instantiation.
      Which definition of ProductCode meets the requirement?

      Answer: B
PAGE: 1 - 94
Add To Cart

© Copyrights DumpsEngine 2026. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.