Java 21 OCP Flashcards
A structured collection of flashcards to help you prepare for the Java 21 OCP certification exam (1Z0-830)
🎬 Quick Start
📖 Study strategy
- Start with Core Concepts: Begin with OOP and Encapsulation fundamentals
- Explore Java 21 Features: Master records, sealed classes, and pattern matching
- Practice with Collections: Understand generics, streams, and functional programming
- Test Frequently: Use the quiz to identify knowledge gaps
- Review and Reinforce: Revisit weak areas using the Q&A guide
📊 Learning Dashboard
49
Total Flashcards
42
Quiz Questions
10
Categories
All Study Materials
🃏 Flashcards by Category
OOP and Encapsulation 10 cards
Instance Methods vs Variables and Static Methods 💡 Remember "HIDE vs OVERRIDE" - static methods an... Constructor Chaining and super() 💡 "No free lunch" - if parent needs arguments, ch... equals() Method Behavior 💡 Classes that don't override equals() are doing ... protected Access Across Packages 💡 Protected across packages = "Family only, and o... Static Field Access and Class Initialization 💡 Remember "DECLARES WINS" - only the class that ... StringBuilder Reference Behavior 💡 You can change the object's content through the... Method Overriding Rules 💡 Remember "OVERRIDE = UPGRADE" - you can make me... Abstract Classes and Methods 💡 Think "ABSTRACT = BLUEPRINT" - defines the stru... Interface Implementation Rules 💡 Think "INTERFACE = CONTRACT" - defines what mus... Nested Classes vs Inner Classes - Key Distinctions 💡 "Static nested = NO instance access, Inner = FU...
Java 21 Features 6 cards
Pattern Matching with switch (Java 21) 💡 Guarded patterns are checked in order. Always h... Sealed Classes (Java 21) 💡 Sealed = "Exclusive club" - only VIP classes (p... Records (Java 21 Features) 💡 Records = "Data class on autopilot" - automatic... Text Blocks (Java 21) 💡 Text blocks = "What you see is what you get" - ... Java I/O - File Reading and Writing 💡 Remember "FILES = SIMPLE, STREAMS = CONTROL" - ... Executor Framework - Key Classes & Methods 💡 "NEW executors create, SUBMIT callables" - Exec...
Streams & Functional 5 cards
Stream Operations and Exception Handling Stream Lazy Evaluation - Intermediate vs Terminal Operations Stream Collectors and Function.identity() 💡 partitioningBy = "split in half", groupingBy = ... Lambda Target Types - Runnable vs Callable 💡 "Runnable runs and forgets, Callable calls and ... ExecutorService with Lambdas - submit() Method Overloading 💡 "Future tells the future" - Future<?> means no ...
Modules & Migration 5 cards
Module System - Basic Declaration and Dependencies 💡 Think "MODULE = CONTROLLED VISIBILITY" - module... Module Migration Strategies: Bottom-Up vs Top-Down 💡 Bottom-up = "Foundation first" (solid but slow)... Module Access Control and Visibility 💡 Think "FORT WITH GATES" - modules are like fort... Module Path vs Classpath 💡 Think "HIGHWAY vs CITY STREETS" - module path i... Module Compilation and Packaging 💡 Think "ASSEMBLY LINE" - compile modules, packag...
Exception Handling 5 cards
Try-With-Resources and Suppressed Exceptions 💡 Primary exception is the "star of the show" - s... Stream Operations and Exception Handling Exception Output Methods 💡 Remember "PRINT vs TRACE" - println() gives you... Multi-Catch and Try-With-Resources Exception Flow Exception Chaining and Return Statement Flow
Date, Time, and Localization 5 cards
LocalDate and LocalTime Operations (Date-Time API) 💡 Remember "IMMUTABLE TIME" - LocalDate/Time clas... ZonedDateTime and Time Zones 💡 Remember "ZONED = SMART, OFFSET = SIMPLE" - Zon... Date and Time Formatting 💡 Remember "PATTERN = PICTURE" - yyyy-MM-dd shows... Daylight Saving Time "Fall Back" Calculations 💡 Remember "FALL BACK = EXTRA HOUR" - When DST en... Localization - Locale and Resource Bundles 💡 Think "LOCALE = WHERE, BUNDLE = WHAT" - Locale ...
Math, Arrays, Wrappers 4 cards
I/O and NIO 4 cards
Java I/O - File Reading and Writing 💡 Remember "FILES = SIMPLE, STREAMS = CONTROL" - ... Files.mismatch() and Path Operations 💡 Mismatch = "Find the first difference" (-1 mean... Path Operations and Resolution 💡 Think "PATH = GPS DIRECTIONS" - Path operations... Stream I/O Classes Hierarchy 💡 Remember "BYTE vs CHAR, BUFFER for SPEED" - use...
Collections & Generics 4 cards
Generics: Bounded Wildcards (READ-WRITE Rule) 💡 READ-WRITE Rule: **R**ead **E**xtends, **W**rit... Deque: Stack vs Queue Operations Set Operations and Characteristics 💡 Remember "HASH-LINKED-TREE" order: HashSet (no ... Map Operations and Merge Method 💡 Think "MERGE = SMART PUT" - merge() handles bot...