Free Oracle 1Z0-829 Exam Questions

Absolute Free 1Z0-829 Exam Practice for Comprehensive Preparation 

  • Oracle 1Z0-829 Exam Questions
  • Provided By: Oracle
  • Exam: Java SE 17 Developer
  • Certification: Oracle Java
  • Total Questions: 660
  • Updated On: Dec 05, 2025
  • Rated: 4.9 |
  • Online Users: 1320
Page No. 1 of 132
Add To Cart
  • 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?

      Answer: B
  • Question 2
    • Question ID: UK8295509
      Given code of Test.java file:
      package com.examtest.ocp;
       
      public class Test {
          public static void main(String[] args) {
              String arr1 [], arr2, arr3 = null; //Line n1
              arr1 = new String[2];
              arr1[0] = "A";
              arr1[1] = "B";
              arr2 = arr3 = arr1; //Line n2
              System.out.println(String.join("-", arr2)); //Line n3
          }
      }
      What is the result?

      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?

      Answer: B
  • Question 4
    • Question ID: UK8295941
      Given code of TestStudent.java file:
      package com.examtest.ocp;
       
      class Student {
          String name;
          int age;
          boolean result;
          double height;
      }
       
      public class TestStudent {
          public static void main(String[] args) {
              var stud = new Student(); //Line n1
              System.out.println(stud.name + stud.height + stud.result + stud.age); //Line n2
          }
      }
      What is the result?

      Answer: A
  • Question 5
    • Question ID: UK8291180
      Given code of Test.java file:
      package com.examtest.ocp;
       
      sealed abstract class Animal permits Cat, Dog { } //Line n1
       
      non-sealed class Cat extends Animal { } //Line n2
       
      final class Dog extends Animal { } //Line n3
       
      final class Tiger extends Animal { } //Line n4
       
      public class Test {
          public static void main(String [] args) {
              System.out.println("PERMITS CLAUSE");
          }
      }
      What is the result?

      Answer: A
PAGE: 1 - 132
Add To Cart

© Copyrights DumpsEngine 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the DumpsEngine.