×

Special Offer! Black Friday Price Drop! Extra 20% OFF- Ends In  Coupon code: DG2020

Free Oracle 1Z0-829 Exam Questions

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

Page:    1 / 132      
Total 660 Questions | Updated On: Nov 24, 2025
Add To Cart
Question 1

Question ID: UK8298155
Following statement in a Java program compiles successfully:
student.report(course);
What can you say for sure?


Answer: C
Question 2

Question ID: UK8292410
Consider below code of Test.java file:
package com.examtest.ocp;
 
public class Test {
    public static void main(String[] args) {
        Boolean b = Boolean.valueOf("tRUe");
        switch(b) {
            case true:
                System.out.println("ONE");
            case false:
                System.out.println("TWO");
            default: 
                System.out.println("THREE");
        }
    }
}
What is the result of compiling and executing Test class?


Answer: D
Question 3

Question ID: UK8298141
Consider below 3 statements:
1. System.out.println(700 * Math.pow(2, -2));
2. System.out.println(700 * (1 / 4));
3. System.out.println(7 * Math.ceil(24.80));
Do all the three statements produce same output?


Answer: B
Question 4

Question ID: UK8296802
Given code:
package com.examtest.ocp;
 
class A {
    A() {
        System.out.print(1);
    }
    class B {
        B() {
            System.out.print(2);
        }
    }
}
 
public class Test {
    public static void main(String [] args) {
        B obj = new A().new B();
    }
}
What is the result?


Answer: A
Question 5

Question ID: UK8296394
Consider below code of Test.java file:
package com.examtest.ocp;
 
public class Test {
    public static void main(String[] args) {
        var sb = new StringBuilder();
        System.out.println(sb.append("").append("").append("").length());
    }
}
What is the result?


Answer: A
Page:    1 / 132      
Total 660 Questions | Updated On: Nov 24, 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.