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: Jan 15, 2026
  • Rated: 4.9 |
  • Online Users: 938
Page No. 1 of 94
Add To Cart
  • Question 1
    • Given code of Test.java file:

      package com.udayan.ocp;

       

      import java.util.Arrays;

      import java.util.List;

       

      public class Test {

          public static void main(String[] args) {

              List list = Arrays.asList("A", "E", "I", "O");

              list.add("U");

              list.forEach(System.out::print);

          }

      }

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


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

      package com.udayan.ocp;

      import java.util.concurrent.*;

      public class Test {

          public static void main(String[] args) throws InterruptedException, ExecutionException {

              ExecutorService es = Executors.newSingleThreadExecutor();

              Future f = es.submit(() -> "HELLO");

              System.out.println(f.get());

              es.shutdown();

          }

      }

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


      Answer: B
  • Question 3
    • Given the code fragment:
      List<String> colors = Arrays.asList(“red”, “green”, “yellow”);
      Predicate<String> test = n - > {
       System.out.println(“Searching…”);
       return n.contains(“red”);
      };
      colors.stream()
       .filter(c -> c.length() >= 3)
       .allMatch(test);
      What is the result?

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

      1. package com.udayan.ocp;

      2.  

      3. import java.util.Arrays;

      4. import java.util.List;

      5. import java.util.ListIterator;

      6.  

      7. public class Test {

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

      9.         List list = Arrays.asList("T", "S", "R", "I", "F");

      10.         ListIterator iter = list.listIterator(2);

      11.         while(iter.hasNext()) {

      12.             System.out.print(iter.next());

      13.         }

      14.     }

      15. }

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


      Answer: B
  • Question 5
    • Consider the code of Test.java file:

      1. package com.udayan.ocp;

      2.  

      3. class Player {

      4.     String name;

      5.     int age;

      6.  

      7.     Player() {

      8.         this.name = "Yuvraj";

      9.         this.age = 36;

      10.     }

      11.  

      12.     public String toString() {

      13.         return name + ", " + age;

      14.     }

      15.     

      16.     public Class getClass() { 

      17.         return super.getClass();

      18.     }

      19. }

      20.  

      21. public class Test {

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

      23.         System.out.println(new Player());

      24.     }

      25. }

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


      Answer: A
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.