EXPERTY DESIGNED 1Z0-829 PRACTICE TEST

Oracle 1Z0-829 Exam Questions
Total Questions: 660
Java SE 17 Developer
Updated On: Jan 28, 2026
Page : 1-66
Question 1

Question ID: UK8295123
Given code of Test.java file:
package com.examtest.ocp;
 
import java.util.ArrayList;
import java.util.List;
 
public class Test {
    public static void main(String[] args) {
        List<Character> list = new ArrayList<>();
        list.add(0, 'E');
        list.add('X');
        list.add(1, 'P');
        list.add(3, 'O');
        
        if(list.contains('O')) {
            list.remove('O');
        }
        
        for(char ch : list) {
            System.out.print(ch);
        }
    }
}
What is the result?

Options :
Answer: B

Question 2

Question ID: UK8293374
Which of the following are Java Exception classes?
Choose 3 options.

Options :
Answer: A,C,D

Question 3

Question ID: UK8297700
Consider below code of Test.java file:
package com.examtest.ocp;
 
class Parent {
    int i = 10;
    Parent(int i) {
        super();
        this.i = i;
    }
}
 
class Child extends Parent {
    int j = 20;
    
    Child(int j) {
        super(0);
        this.j = j;
    }
    
    Child(int i, int j) {
        super(i);
        this(j);
    }
    
}
 
public class Test {
    public static void main(String[] args) {
        Child child = new Child(1000, 2000);
        System.out.println(child.i + ":" + child.j);
    }
}
What is the result?

Options :
Answer: C

Question 4

Question ID: UK8291549
Given code of Test.java file:
package com.examtest.ocp;
 
public class Test {
    private static void m(int i) {
        System.out.print(1);
    }
    
    private static void m(int i1, int i2) {
        System.out.print(2);
    }
    
    private static void m(char... args) {
        System.out.print(3);
    }
   
    public static void main(String... args) {
        m('A');
        m('A', 'B');
        m('A', 'B', 'C');
        m('A', 'B', 'C', 'D');
    }
}
What is the result?

Options :
Answer: C

Question 5

Question ID: UK8291921
Given code of Test.java file:
package com.examtest.ocp;
 
import java.time.*;
 
public class Test {
    public static void main(String [] args) {
        System.out.println(Duration.ofDays(-2));
    }
}
What is the result?

Options :
Answer: C

© Copyrights Oracledumps 2026. All Rights Reserved

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