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: UK8298130
      Consider below code of Test.java file:
      package com.examtest.ocp;
       
      class A {
          public String toString() {
              return null;
          }
      }
       
      public class Test {
          public static void main(String [] args) {
              String text = null;
              text = text + new A(); //Line n1
              System.out.println(text.length()); //Line n2
          }
      }
      What is the result?

      Answer: A
  • Question 2
    • 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 3
    • Given the content of the in. tart file:

      23456789

      and the code fragment:




      What is the content of the out .txt file? 

      Answer: D
  • Question 4
    • Question ID: UK8295901
      Consider below code:
      package com.examtest.ocp;
       
      public class Test {
          static Double d1;
          static int x = d1.intValue();
          
          public static void main(String[] args) {
              System.out.println("HELLO");
          }
      }
      On execution, does Test class print HELLO on to the console?

      Answer: B
  • Question 5
    • 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
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.