Higher Test Marks with Free Online 1Z0-829 Exam Practice

Assess the CertsIQ’s updated 1Z0-829 exam questions for free online practice of your Java SE 17 Developer test. Our Oracle Certified Professional: Java SE 17 Developer 1Z0-829 dumps questions will enhance your chances of passing the Oracle Java certification exam with higher marks.

Exam Code: 1Z0-829
Exam Questions: 660
Java SE 17 Developer
Updated: 05 Dec, 2025
Question 1

Question ID: UK8296869
Given code of Test.java file:
package com.examtest.ocp;
 
class Parent {
    int var = 1000; // Line n1
 
    int getVar() {
        return var;
    }
}
 
class Child extends Parent {
    private int var = 2000; // Line n2
 
    int getVar() {
        return super.var; //Line n3
    }
}
 
public class Test {
    public static void main(String[] args) {
        Child obj = new Child(); // Line n4
        System.out.println(obj.var); // Line n5
    }
}
There is a compilation error in the code.
Which three modifications, done independently, print 1000 on to the console?

Options :
Answer: A,B,D

Question 2

Question ID: UK8292097
Below is the code of Test.java file:
package com.examtest.ocp;
 
import java.util.*;
 
public class Test {
    public static void main(String[] args) {
        var list = new ArrayList<>(); //Line n1
        list.add("TAKE");
        list.add("THE");
        list.add("RISK");
 
        System.out.println(String.join(".", list)); //Line n2
    }
}
What is the result?

Options :
Answer: B

Question 3

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

Question 4

Question ID: UK8294645
Given code of Test.java file:
package com.examtest.ocp;
 
import java.io.IOException;
import java.sql.SQLException;
 
class MyResource implements AutoCloseable {
    @Override
    public void close() throws IOException{
        throw new IOException("IOException");
    }
 
    public void execute() throws SQLException {
        throw new SQLException("SQLException");
    }
}
 
public class Test {
    public static void main(String[] args) {
        try(MyResource resource = new MyResource()) {
            resource.execute();
        } catch(Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
What is the result?

Options :
Answer: B

Question 5

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

Options :
Answer: C

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

© Copyrights CertsIQ 2025. All Rights Reserved

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