Confidently Practice Online with Free 1Z0-829 Exam Cram

Practice your Java SE 17 Developer certification test with free 1Z0-829 exam cram and take control of your certification preparation. At FreeExamCram, you can practice online for free using real 1Z0-829 exam dumps, verified questions, and expert-designed free online practice tests. Moreover our Oracle 1Z0-829 exam cram backed by our confidence-boosting refund guarantee.

Exam Code: 1Z0-829
Exam Questions: 660
Java SE 17 Developer
Updated: 21 Feb, 2026
Viewing Page : 1 - 66
Practicing : 1 - 5 of 660 Questions
Question 1

Question ID: UK8291985
Consider below code of Test.java file:
package com.examtest.ocp;
 
import java.time.LocalDate;
 
public class Test {
    public static void main(String [] args) {
        LocalDate date = LocalDate.parse("1980-03-16");
        System.out.println(date.minusYears(-5));
    }
}
What is the result?

Options :
Answer: B

Question 2

Question ID: UK8297291
Consider below code snippet:
var x = Double.valueOf(Math.random() * 10).intValue();
System.out.println(x);
Which of the following statements is correct?

Options :
Answer: D

Question 3

Question ID: UK8297722
Given code of Test.java file:
package com.examtest.ocp;
 
interface Rideable {
    void ride(String name);
}
 
class Animal {}
 
class Horse extends Animal implements Rideable {
    public void ride(String name) {
        System.out.println(name.toUpperCase() + " IS RIDING THE HORSE");
    }
}
 
public class Test {
    public static void main(String[] args) {
        Animal horse = new Horse();
        /*INSERT*/
    }
}
Which of the following options, if used to replace /*INSERT*/, will compile successfully and on execution will print EMMA IS RIDING THE HORSE on to the console?
Choose 4 options.

Options :
Answer: A,C

Question 4

Question ID: UK8291924
Given code of Test.java file:
package com.examtest.ocp;
 
import java.time.*;
 
public class Test {
    public static void main(String [] args) {
        Period period = Period.ofWeeks(100);
        System.out.println(period);
    }
}
What is the result?

Options :
Answer: C

Question 5

Question ID: UK8291953
Consider below code of Test.java file:
package com.examtest.ocp;
 
public class Test {
    public static void main(String [] args) {
        var text = """
            I gave him $200 and \
            he returned me €120, \
            so I am left with £80.""";
 
        System.out.println(
            text.transform(Test::removeCurrencySymbols)
                .transform(String::toUpperCase)
                .formatted("¥", "¥", "¥"));
    }
 
    private static String removeCurrencySymbols(String s) {
        return s.replaceAll("\\$", "%s")
                .replaceAll("€", "%s")
                .replaceAll("£", "%s");
    }
}
What is the result?

Options :
Answer: B

Viewing Page : 1 - 66
Practicing : 1 - 5 of 660 Questions

© Copyrights FreeExamCram 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreeExamCram). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeExamCram.