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 09, 2025
Add To Cart
Question 1

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

package com.udayan.oca;

 

public class Test {

 

     private static void add(double d1, double d2) {

         System.out.println("double version: " + (d1 + d2));

     }

 

     private static void add(Double d1, Double d2) {

        System.out.println("Double version: " + (d1 + d2));

     }

 

     public static void main(String[] args) {

         add(10.0, null);

     }

 

}


Answer: B
Question 2

Given:

HPE6-A70
What is the result?


Answer: D
Question 3

Given:

HPE6-A70
What is the result?


Answer: A
Question 4

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.         /*INSERT*/ x = 7, y = 200;

6.         System.out.println(String.valueOf(x + y).length());

7.     }

8. }

Which of the following options, if used to replace /*INSERT*/, will compile successfully and on execution will print 3 on to the console?

Select 3 options.


Answer: A,B,F
Question 5

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
Page:    1 / 122      
Total 608 Questions | Updated On: Jul 09, 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.