Featured

Java

Three Design Patterns That Use Inversion of Control

Inversion of control is not just dependency injection - the observer and template method patterns use it as well. Study all three to...
Alejandro Gervasio, 22 hours ago
Java

Six Ways to Functional FizzBuzz with Vavr

Functional programming solutions for FizzBuzz using Vavr (formerly Javaslang) and common FP features like streams, pattern matching, and...
Gregor Trefs, Apr 17
Java

Java Bean Validation's validateProperty() and validateValue() in Three Minutes

Use the Java Bean Validation methods validateValue() and validateProperty() to independently check fields of a target class or even their...
Alejandro Gervasio, Apr 12
19 Comments
Java

Which Java Logging Framework Has the Best Performance?

Out of Java's three big logging frameworks (Java Util Logging, Log4j 2, and Logback), which one has the best performance?
Stephen Connolly, Apr 10
6 Comments
Java

10 Things You Didn't Know About Java

Learn more about Java and the JVM: 10 obscure details you didn't know they could do. Did you know, for example, that checked exceptions...
Lukas Eder, Apr 06
Java

Why Maven Cannot Generate Your Module Declaration

Java 9 modules require a module declaration (a file module-info.java), which declares dependencies; just as Maven's POM does. So couldn't...
Robert Scholte, Apr 03
Java

Java's Binary Search API in Five Minutes

Java offers Arrays.binarySearch and Collections.binarySearch, which perform a binary search on an array or list. Learn how to search and...
Jackie Ng, Mar 29
4 Comments
Java

Fundamentals of Java Enum Types

Java enum types make it easy to define a fixed number of constants. More than that, enums are full-blown classes and can have fields and...
Valdio Veliu, Mar 27
Get the latest in Java, once a week, for free.

Latest

A Happy Computer
Versioning: SitePoint's daily newsletter. Hilarious, a touch cynical, free.Is it good?