Free Oracle 1Z0-808 Exam Questions

Absolute Free 1Z0-808 Exam Practice for Comprehensive Preparation 

  • Oracle 1Z0-808 Exam Questions
  • Provided By: Oracle
  • Exam: Java SE 8 Programmer I
  • Certification: Oracle Certified Associate
  • Total Questions: 608
  • Updated On: Sep 24, 2026
  • Rated: 4.9 |
  • Online Users: 1216
Page No. 1 of 122
Add To Cart
  • Question 1
    • Range of short data type is from -32768 to 32767

      Which of the following code segments, written inside main method will compile successfully?

      Select 3 options.


      Answer: B,D
  • Question 2
    • Given code:

      package com.udayan.oca;

       

      public class Test {

          public static void main(String[] args) {

              /*INSERT*/

              arr[1] = 5;

              arr[2] = 10;

              System.out.println("[" + arr[1] + ", " + arr[2] + "]"); //Line n1

          }

      }

      And below statements:

      1. short arr [] = new short[2];

      2. byte [] arr = new byte[10];

      3. short [] arr; arr = new short[3];

      4. short [2] arr;

      5. short [3] arr;

      6. int [] arr = new int[]{100, 100};

      7. int [] arr = new int[]{0, 0, 0, 0};

      8. short [] arr = {};

      9. short [] arr = new short[2]{5, 10};

      How many above statements can be used to replace /*INSERT*/, such that on execution, code will print [5, 10] on to the console?


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

      Answer: A
  • Question 4
    • Given the code fragment:
      HPE6-A70
      What is the result?

      Answer: A
  • Question 5
    • Consider below code:

      1. package com.udayan.oca;

      2.  

      3. public class Test {

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

      5.         StringBuilder sb = new StringBuilder();

      6.         try {

      7.             for(;;) {

      8.                 sb.append("OCA");

      9.             }

      10.         } catch(Exception e) {

      11.             System.out.println("Exception!!!");

      12.         }

      13.         System.out.println("Main ends!!!");

      14.     }

      15. }

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


      Answer: D
PAGE: 1 - 122
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.