Cathasaigh

Cathasaigh

I'm an author, writer, musician, and a software developer with over 17 years experience. All glory goes to God.
Oct
08
Structure of a Java Source File

Structure of a Java Source File

The structure every Java source file must follow.
1 min read
Oct
07
Constructors vs Initializers in Java

Constructors vs Initializers in Java

Constructors are called when creating an instance of a class, whereas initializers are called regardless of the constructor.
3 min read
Oct
04
Record Patterns in Java

Record Patterns in Java

Pattern matching specific for record types.
3 min read
Oct
03
Pattern Matching Using Switch in Java

Pattern Matching Using Switch in Java

Pattern matching is both supported in switch statements and switch expressions.
3 min read
Oct
02
Inheritance vs Composition

Inheritance vs Composition

Inheritance is where a class inherits from another class, whereas composition is a class instance inside another class.
2 min read
Oct
01
Pattern Matching Using the instanceof Operator in Java

Pattern Matching Using the instanceof Operator in Java

Pattern matching using instanceof allows you to define pattern variables, simplifies code, and avoids ClassCastExceptions.
2 min read
Sep
30
Anonymous Classes in Java

Anonymous Classes in Java

Anonymous classes are unnamed implementations of a class.
3 min read
Sep
27
Sealed Classes in Java

Sealed Classes in Java

Sealed classes and interfaces allow you to restrict who can extend or implement them.
4 min read
Sep
26
Exceptions vs Errors in Java

Exceptions vs Errors in Java

Exceptions are programming errors or recoverable errors, whereas an Error is something that isn't recoverable.
1 min read
Sep
25
Exception Handling in Java

Exception Handling in Java

Exceptions in code are either thrown or caught and handled.
3 min read