Free Oracle 1Z0-808 Exam Questions

Become Oracle Certified with updated 1Z0-808 exam questions and correct answers

Page:    1 / 122      
Total 608 Questions | Updated On: Jul 12, 2025
Add To Cart
Question 1

Given the code fragments:

1Z0-808
And: 
1Z0-808
Which statement is true?


Answer: C
Question 2

Consider below code of Test.java file:

1. package com.sampleproject.oca;

2.  

3. public class Test {

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

5.         String [][] arr = { {"%", "$$"}, {"***", "@@@@", "#####"}};

6.         for(String [] str : arr) {

7.             for(String s : str) {

8.                 System.out.println(s);

9.                 if(s.length() == 4) //Line n1

10.                     break; //Line n2

11.             }

12.             break; //Line n3

13.         }

14.     }

15. }

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


Answer: E
Question 3

Given:

1Z0-808
What is the result?


Answer: B
Question 4

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

package com.udayan.oca;

public class Test {

     public static void main(String[] args) {

         String str = "Java Rocks!";

         System.out.println(str.length() + " : " + str.charAt(10));

     }

}


Answer: B
Question 5

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
Page:    1 / 122      
Total 608 Questions | Updated On: Jul 12, 2025
Add To Cart

© Copyrights DumpsCertify 2025. All Rights Reserved

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