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: Jul 22, 2026
  • Rated: 4.9 |
  • Online Users: 1216
Page No. 1 of 122
Add To Cart
  • Question 1
    • How many String objects are there in the HEAP memory, when control is at Line 9?

      1. package com.udayan.oca;

      2.  

      3. public class Test {

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

      5.          String s1 = new String("Java"); //Line 3

      6.          String s2 = "JaVa"; //Line 4

      7.          String s3 = "JaVa"; //Line 5

      8.          String s4 = "Java"; //Line 6

      9.          String s5 = "Java"; //Line 7

      10.  

      11.          int i = 1; //Line 9

      12.  

      13.      }

      14. }


      Answer: B
  • Question 2
    • What will be the result of compiling and executing Test class?

      package com.udayan.oca;

       

      public class Test {

          public static void main(String[] args) {

              m1(null);

          }

          

          static void m1(CharSequence s) {

              System.out.println("CharSequence");

          }

          

          static void m1(String s) {

              System.out.println("String");

          }

         

          static void m1(Object s) {

              System.out.println("Object");

          }

      }


      Answer: D
  • Question 3
    • Consider below codes of 3 java files:

      1. //M.java

      2. package com.sampleproject.oca;

      3.  

      4. public class M {

      5.     public void printName() {

      6.         System.out.println("M");

      7.     }

      8. }

      1. //N.java

      2. package com.sampleproject.oca;

      3.  

      4. public class N extends M {

      5.     public void printName() {

      6.         System.out.println("N");

      7.     }

      8. }

      1. //Test.java

      2. package com.sampleproject.oca.test;

      3.  

      4. import com.sampleproject.oca.*;

      5.  

      6. public class Test {

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

      8.         M obj1 = new M();

      9.         N obj2 = (N)obj1;

      10.         obj2.printName();

      11.     }

      12. }

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


      Answer: C
  • Question 4
    • CGiven the code fragments:
      HPE6-A70
      Which code fragment, when inserted at line n1, enables the code to print Hank?

      Answer: C
  • Question 5
    • 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
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.