Exam Code: 1Z0-829
Exam Questions: 660
Java SE 17 Developer
Updated: 26 Nov, 2025
Viewing Page : 1 - 66
Practicing : 1 - 5 of 660 Questions
Question 1

Question ID: UK8298581Given the code fragment:String txt = "an";System.out.println(txt.split("an").length);What is the result?

Options :
Answer: A

Question 2

Question ID: UK8293780Given 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?

Options :
Answer: D

Question 3

Question ID: UK8295901Consider 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?

Options :
Answer: B

Question 4

Question ID: UK8298141Consider below 3 statements:1. System.out.println(700 * Math.pow(2, -2));2. System.out.println(700 * (1 / 4));3. System.out.println(7 * Math.ceil(24.80));Do all the three statements produce same output?

Options :
Answer: B

Question 5

Question ID: UK8291577Given 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?

Options :
Answer: A

Viewing Page : 1 - 66
Practicing : 1 - 5 of 660 Questions

© Copyrights FreePDFQuestions 2025. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.