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: Jul 24, 2026
  • Rated: 4.9 |
  • Online Users: 1320
Page No. 1 of 132
Add To Cart
  • Question 1
    • 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 2
    • Question ID: UK8293780
      Given code of Test.java file:
      package com.examtest.ocp;
       
      interface Blogger {
          default void blog() throws Exception {
              System.out.println("GENERIC");
          }
      }
       
      class TravelBlogger implements Blogger {
          public void blog() {
              System.out.println("TRAVEL");
          }
      }
       
      public class Test {
          public static void main(String[] args) {
              Blogger blogger = new TravelBlogger(); //Line n1
              ((TravelBlogger)blogger).blog(); //Line n2
          }
      }
      What is the result?

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

      Answer: A,C,D
  • Question 4
    • Question ID: UK8298152
      Consider below code:
      package com.examtest.ocp;
       
      import java.time.LocalDate;
       
      public class Test {
          public static void main(String [] args) {
              LocalDate d1 = LocalDate.parse("1999-09-09");
              LocalDate d2 = LocalDate.parse("1999-09-09");
              LocalDate d3 = LocalDate.of(1999, 9, 9);
              LocalDate d4 = LocalDate.of(1999, 9, 9);
              System.out.println((d1 == d2) + ":" + (d2 == d3) + ":" + (d3 == d4));
          }
      }
      What is the result?

      Answer: D
  • Question 5
    • Question ID: UK8294682
      Consider below codes of 3 java files:
      //Shrinkable.java
      package com.examtest.ocp;
       
      public interface Shrinkable {
          public static void shrinkPercentage() {
              System.out.println("80%");
          }
      }
      //AntMan.java
      package com.examtest.ocp;
       
      public class AntMan implements Shrinkable { }


      //Test.java
      package com.examtest.ocp;
       
      public class Test {
          public static void main(String[] args) {
              AntMan.shrinkPercentage();
          }
      }
      Which of the following statements is correct?

      Answer: C
PAGE: 1 - 132
Add To Cart

© Copyrights DumpsEngine 2026. All Rights Reserved

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