Free Oracle 1Z0-829 Exam Questions

Try our Free Demo Practice Tests for Comprehensive 1Z0-829 Exam Preparation

  • Oracle 1Z0-829 Exam Questions
  • Provided By: Oracle
  • Exam: Java SE 17 Developer
  • Certification: Oracle Java
  • Total Questions: 660
  • Updated On: Mar 25, 2025
  • 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: UK8298570
      Consider below code of Test.java file:
      package com.examtest.ocp; 
       
      public class Test extends String {
          @Override
          public String toString() {
              return "TEST";
          }
          
          public static void main(String[] args) {
              Test obj = new Test();
              System.out.println(obj);
          }
      }
      What is the result?

      Answer: D
  • Question 3
    • Question ID: UK8291525
      Below is the code of TestSellable.java file:
      package com.examtest.ocp;
       
      interface Sellable {
          double getPrice();
      }
       
      public class TestSellable {
          private static void printPrice(Sellable sellable) {
              System.out.println(sellable.getPrice());
          }
       
          public static void main(String[] args) {
              /*INSERT*/
          }
      }
      Which of the following options can replace /*INSERT*/ such that there are no compilation errors?
      Choose 3 options.

      Answer: A,D
  • Question 4
    • Question ID: UK8297797
      Given code:
      package com.examtest.ocp;
       
      import java.util.ArrayList;
      import java.util.List;
       
      public class Test {
          public static void main(String[] args) {
             var list = new ArrayList<String>(); //Line n1
             list.add("A");
             list.add("M");
             var list_of_list = List.of(list); //Line n2
             list_of_list.get(0).set(1, "N"); //Line n3
             list_of_list.get(0).forEach(System.out::print); //Line n4
          }
      }
      What is the result?

      Answer: D
  • Question 5
    • Question ID: UK8291961
      Consider below statements:
      1. int x = 5____0;
      2. int y = ____50;
      3. int z = 50____;
      4. float f = 123.76_86f;
      5. double d = 1_2_3_4;
      How many statements are legal?

      Answer: C
PAGE: 1 - 132
Add To Cart

© Copyrights Dumpscity 2025. All Rights Reserved

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