Java 17 includes the switch expressions into the language, which provides a more declarative and pleasant programming style, which we see in other programming languages.
Continue readingTag: Java
Adding vulnerabilities check on maven or gradle
Instructions to add the owasp dependency check plugin in maven or gradle and detect possible vulnerabilities as part of the dependencies of our applications.
Continue readingUnderstanding Sealed classes in Java 17
Sealed classes are an enhancement to the language included with LTS version 17 (included since version 16) of Java. Sealed classes or interfaces allow us to restrict what other classes and interfaces can extend from them.
Continue readingLock mechanism using Files on Java
Using Java NIO we can implement a locking mechanism, to access resources concurrently safely and maintaining the integrity of our information.
Continue readingPicocli – Easiness for CLI arguments in Java
Picocli, defines itself as the easiest way to create a rich cli application for JVM and no JVM environments.
Continue readingEffective data load in JPA with Entity Graph
PA 2.1 has introduced the Entity Graph feature, and it’s a very useful when we need to load data from a relationship in the query, in a different way as the mapped in the entity.
Continue readingCreating a Fat Jar using maven and gradle
It’s very common that we might need to create a Java application and generate the jar executable, but we need to use third-party libraries that […]
Continue readingUsing jEnv to switch JDK versions
jEnv is a command line tool that help you to switch java versions. Let’s see how to install it correctly and use it.
Continue readingUsing JPA CriteriaQuery to build Paginated Queries
Simple example of creating Pagination using JPA Criteria queries.
Continue readingJava OCP 11 Certification on $25 and free learning courses
Useful information about how to get the free learning courses and discount on the OCP certification exam for a limited time.
Continue reading