
Java's switch statement allows easy selection of execution paths based on a variable's value. Switches can replace if-else-if chains.
Java's switch statement allows easy selection of execution paths based on a variable's value. Switches can replace if-else-if chains.
A tutorial on how to use Contexts and Dependency Injection (CDI) / Weld and Hibernate in the development of a full-blown JPA application.
Lombok is a library that helps to reduce Java's verbosity. This tutorial presents how to use it to write clearer POJO classes.
Learning property based testing, or property checking, in Java using Vavr (formerly Javaslang) and the FizzBuzz Kata.
Using Java agents and the dynamic attach and instrumentation APIs it is possible to fix bugs in running Java programs.
A tutorial on how to use Contexts and Dependency Injection (CDI) and Weld in Java SE, covering core features like annotations, qualifiers, and producers.
Dropwizard is a framework for building RESTful web services in Java. This tutorial shows how to create, retrieve, update, and delete resources.
Reflection wants to break into all code; encapsulation wants to give modules a safe space. How can this stand off in the Java module system be resolved?
The history of the Groovy programming language including technical features and aspects of its governance and community that have made it successful.
The Java Community Process (JCP) governs Java's future. Simon Ritter explains it and how the EC, EGs, JSRs, JEPs, the JSPA, FoU, RI, and TCK/JCK interact.
A run-through of some common perceptions of Java, from someone who doesn't regularly work with it. Is it really that slow and bloated?
A hands-on guide to domain model validation with the Java Beans Validation standard (JSR 303) and Hibernate Validator (Apache BVal is very similar.)
Explains how to use Spring Boot with JDBI instead of Hibernate, resulting first-class dependency injection (by Spring Boot) and a light ORM (JDBI).
Summarizing where JUnit 5 is currently standing, discussing everything from API, extension model, and architecture to history, tool support, and open issues
Dropwizard is a framework for building RESTful web services in Java. In this tutorial we're going to create a new Dropwizard service from scratch.
This tutorial builds a simple Java web application with Java's Servlet API. It shows how to set the project up, create views / controllers, and deploy.
Exploring the limitations of Hibernate's schema generation utility hbm2ddl and the benefits of an automated schema migration tool such as FlywayDB.
Java's Optional, unlike may-or-may-not-contain-a-value types in other languages, is no well-behaving monad. And this matters to everyday developers like us!
The Combinator Pattern, well known in FP, combines primitives into complex structures. Gregor Trefs explores an implementation in Java 8.
JPA/Hibernate is a common approach to persistence in Java. This tutorial creates a simple CRUD app using Hibernate's EntityManager and the DAO pattern.
JPA and Hibernate as its most popular implementation are, therefore, the most common choice to implement database access.
Indrek Ots explains how the Java compiler handles Unicode and Unicode escapes and how this can lead to mysterious compile errors.
Last week was the Java Virtual Machine Language Summit (JVMLS) where renown experts present the newest developments of the JVM.
Self types let a class reference its own type. Java doesn't have them, but there is a trick.