Resolving the Cannot reference X before supertype constructor error in Java

Sometimes when implementing a constructor on an object that requires calling another constructor there’s a need to call a helper method that does some work. This is done either for convenience or because some work needs to be done on input parameters befo… Read more

Similar

Java’s Sealed Classes

The release of Java SE 15 in Sept 2020 will introduce "sealed classes" (JEP 360) as a preview feature. A sealed class is a class or interface which restricts which other classes or interfaces may extend it. Sealed classes, like enums, capture alternative... (more…)

Read more »

Functional Programming in Java

If you have ever used Streams and Optionals in Java, you must have come across lambda expressions and functional interfaces. But how exactly are lambda expressions tied to functional interfaces? This… (more…)

Read more »