0% found this document useful (0 votes)
3 views3 pages

Java SE 17 Study Guide

The document provides a comprehensive overview of the Java SE 17 Certification (1Z0-829) including topic-by-topic short notes covering Java basics, control flow statements, object-oriented programming, new features in Java 17, exceptions, collections, lambda and stream API, file I/O, date and time API, and modules. It also includes 50+ real-style questions to test knowledge on these topics. Key Java 17 features highlighted include records, sealed classes, pattern matching, and text blocks.

Uploaded by

230719.cs
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java SE 17 Study Guide

The document provides a comprehensive overview of the Java SE 17 Certification (1Z0-829) including topic-by-topic short notes covering Java basics, control flow statements, object-oriented programming, new features in Java 17, exceptions, collections, lambda and stream API, file I/O, date and time API, and modules. It also includes 50+ real-style questions to test knowledge on these topics. Key Java 17 features highlighted include records, sealed classes, pattern matching, and text blocks.

Uploaded by

230719.cs
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java SE 17 Certification (1Z0-829)

50+ Real-Style Questions & Topic-by-Topic Short Notes

Topic-by-Topic Short Notes


1. Java Basics

- Java is a platform-independent, object-oriented language.

- Main method: public static void main(String[] args)

- Primitives: int, double, char, boolean, etc.

- Wrapper classes: Integer, Double, Character, etc.

2. Control Flow Statements

- if-else, switch-case, while, do-while, for loops

- Enhanced switch introduced in Java 14+ (supported in Java 17)

- Break, continue, labeled loops

3. Object-Oriented Programming

- Inheritance, Polymorphism, Abstraction, Encapsulation

- Interface vs Abstract class

- Method Overloading vs Overriding

- Use of 'super' and 'this' keywords

4. Java 17 Features

- Records: Compact syntax for immutable data classes

- Sealed classes: Restrict which classes can extend/implement

- Pattern matching with instanceof and enhanced switch

- Text blocks for multi-line strings

5. Exceptions

- Checked vs Unchecked exceptions

- try-catch-finally, throw, throws

- Multi-catch block, suppressed exceptions

6. Collections and Generics

- List, Set, Map interfaces and their implementations


- Autoboxing and Unboxing

- Generic classes and methods, wildcards

7. Lambda and Stream API

- Functional interfaces (Predicate, Consumer, Function)

- Stream methods: map, filter, collect, forEach, etc.

- Method references and lambda syntax

8. File I/O and NIO

- Files, Paths, BufferedReader, BufferedWriter

- [Link] package and static methods of Files class

9. Date and Time API

- LocalDate, LocalTime, LocalDateTime, Period, Duration

- DateTimeFormatter for formatting and parsing

10. Modules

- [Link]

- exports, requires keywords


50+ Real-Style Java SE 17 Questions
1. Which of the following is a valid record declaration?

2. What is the output of the following code involving text blocks?

3. How do you make a class a sealed class in Java 17?

4. What is the difference between == and equals() method in Java?

5. Which interface does List extend?

6. What happens if a finally block contains a return statement?

7. What are the restrictions on records in Java?

8. What is the use of Optional in Java?

9. Which method is used to read a file line-by-line using NIO?

10. What is the result of using instanceof with pattern matching?

11. How is a sealed class declared and what are permitted subclasses?

12. What is the behavior of [Link]() with duplicate keys?

13. Can an interface be declared as sealed?

14. Which exception is thrown when dividing by zero?

15. Which Stream operation is terminal?

16. What does the [Link]() method return?

17. What is the result of [Link]().plusDays(1)?

18. What does [Link]() return?

19. What is the access level of members in an interface?

20. Which keyword is used to define a module in Java?

You might also like