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: Sep 24, 2026
  • Rated: 4.9 |
  • Online Users: 1320
Page No. 1 of 132
Add To Cart
  • Question 1
    • Question ID: UK8296377
      Daylight saving time of 2018 in United States (US) ended at 4-Nov-2018 2:00 AM.
      What will be the result of compiling and executing below code?
      package com.examtest.ocp;
       
      import java.time.*;
       
      public class Test {
          public static void main(String [] args) {
              LocalDate date = LocalDate.of(2018, 11, 4);
              LocalTime time = LocalTime.of(13, 59, 59);
              ZonedDateTime dt = ZonedDateTime.of(date, time, ZoneId.of("America/New_York"));
              dt = dt.plusSeconds(1);
              System.out.println(dt.getHour() + ":" + dt.getMinute() + ":" + dt.getSecond());
          }
      }

      Answer: C
  • Question 2
    • Question ID: UK8295518
      How many of the below code statements, written inside main method will compile successfully?
      1. var arr1 = new int[]{10};
      2. var arr2 = new String[][] {};
      3. var arr3 = new char[][] {{}};
      4. var arr4 = {10, 20, 30};
      5. var arr5 = new String[][] {new String[]{"LOOK"}, new String[] {"UP"}};
      6. var [] arr6 = new int[] {2, 3, 4};

      Answer: A
  • Question 3
    • Given code of Test.java file:
      package com.examtest.ocp;

      public class Test {
          private static String print(String... args) {
              return String.join("-", args); //Line n1
          }
          
          private static Object print(Object... args) {
              String str = "";
              for(Object obj : args) {
                  if(obj instanceof String) { //Line n2
                      str += (String) obj; //Line n3
                  }
              }
              return str; //Line n4
          }
          
          public static void main(String... args) {
              Object obj1 = new String("SPORT"); //Line n5
              Object obj2 = new String("MAD"); //Line n6
              System.out.println(print(obj1, obj2)); //Line n7
          }
      }
      What is the result?

      Answer: A
  • Question 4
    • Question ID: UK8291153
      Given code of Test.java file:
      package com.examtest.ocp;
       
      import java.util.ArrayList;
      import java.util.List;
       
      class Person {
          private String name;
          private int age;
          
          Person(String name, int age) {
              this.name = name;
              this.age = age;
          }
          
          public String toString() {
              return "Person[" + name + ", " + age + "]";
          }
          
          public boolean equals(Person obj) {
              if(obj instanceof Person) {
                  Person person = (Person)obj;
                  if(this.name.equals(person.name) && this.age == person.age) {
                      return true;
                  }
              }
              return false;
          }
      }
       
      public class Test {
          public static void main(String[] args) {
              List<Person> persons = new ArrayList<>();
              persons.add(new Person("Liam", 25));
              persons.add(new Person("Liam", 27));
              persons.add(new Person("Liam", 25));
              persons.add(new Person("Liam", 25));
              
              persons.remove(new Person("Liam", 25));
              
              for(Person person : persons) {
                  System.out.println(person);
              }
          }
      }
      What is the result?

      Answer: D
  • Question 5
    • Question ID: UK8291577
      Given code of Test.java file:
      package com.examtest.ocp; 
       
      public class Test {
          public static void main(String[] args) {
              for:
              for (int i = 2; i <= 100; i = i + 2) {
                  for(int j = 1; j <= 10; j++) {
                      System.out.print(i * j + "\t");
                  }
                  System.out.println();
                  if(i == 10) {
                      break for;
                  }
              }
          }
      }
      What is the result?

      Answer: A
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.