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: Oct 27, 2025
Add To Cart
Question 1

Question ID: UK8291982
Consider below code of Test.java file:
package com.examtest.ocp;
 
import java.time.LocalDate;
 
class MyLocalDate extends LocalDate {
    @Override
    public String toString() {
        return super.getDayOfMonth() + "-" + super.getMonthValue() + "-" +  super.getYear();
    }
}
 
public class Test {
    public static void main(String [] args) {
        MyLocalDate date = LocalDate.parse("1980-03-16");
        System.out.println(date);
    }
}
What is the result?


Answer: A
Question 2

Question ID: UK8297279
Consider below code of Test.java file:
package com.examtest.ocp;
 
public class Test {
    public static void main(String [] args) {
        boolean flag1 = true;
        boolean flag2 = false;
        boolean flag3 = true;
        boolean flag4 = false;
        
        System.out.println(!flag1 == flag2 != flag3 == !flag4); //Line n1
        System.out.println(flag1 = flag2 != flag3 == !flag4); //Line n2
    }
}
What is the result?


Answer: A
Question 3

Question ID: UK8291961
Consider below statements:
1. int x = 5____0;
2. int y = ____50;
3. int z = 50____;
4. float f = 123.76_86f;
5. double d = 1_2_3_4;
How many statements are legal?


Answer: C
Question 4

Given:




What is the result?


Answer: E
Question 5

Question ID: UK8291577
Given code of Test.java file:
package com.examtest.ocp; 
 
public class Test {
    public static void main(String[] args) {
        for:
        for (int i = 2; i <= 100; i = i + 2) {
            for(int j = 1; j <= 10; j++) {
                System.out.print(i * j + "\t");
            }
            System.out.println();
            if(i == 10) {
                break for;
            }
        }
    }
}
What is the result?


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