OCP 17 Exam - chapter 6 notes
Chapter 6 notes my protip: always start reading code from main method synonyms of subtype when working with classes: subclass, child class synonyms of supertype when working...
Chapter 6 notes my protip: always start reading code from main method synonyms of subtype when working with classes: subclass, child class synonyms of supertype when working...
Chapter 5 notes access modifiers (public, protected, …) and optional modifiers (final, static) can be in any order, but must be before return type void public method() { } // DOES NOT COMPI...
Chapter 4 notes be aware that exam want to trick us on concatenation of String and numbers, e.g. prints 66 int five = 5; String six = "6"; System.out.println(1 + five + six)...
Chapter 3 notes “watch indentation and braces”, e.g. in the following example count is always incremented if (count < 2) System.out.println("Good day"); count++; “pattern matchin...
Chapter 2 notes unary = 1 param, binary = 2 params, ternary = 3 params numeric promotions rules: always to larger data type, e.g. short -> int integral type is promoted to...
Chapter 1 notes: source file must have at most one public type import that specifies class name takes precedence over import with * if there are two classes with the same name e.g....
Motivation: The goal is to more effectively measure your performance and impact on a project by categorizing your work in a consistent way. Background: In the past, I used to prefix my commits a...
NOTE: Originally posted on https://blog.cronn.de/en/java/2023/07/14/named-capturing-groups-in-jdk-20.html TL;DR Since JDK 11 there haven't been any significant changes to Regex API. In JDK 20 a ...
I really enjoy asserting collections with AssertJ. Usually it’s safer and simpler to use containsExactlyInAnyOrder rather than asserting individual elements (collection.get(0)) - even if there is o...
I’m excited to share with you a new tool that I’ve been using to help protect my eyes while working on my computer. It’s called safe-eyes-cli and it’s inspired by the popular Safe Eyes application....