Blog about Programming, Design, Java, Tutorial, Examples, Interview Questions, Java 5, 6, 7, 8, 9 features, multithreading, Linux, UNIX and tips.
Exclude Fields from Serialization in Gson | Baeldung
Explore the options available to exclude fields from serialization in Gson.
Java & Docker: Java 10 improvements strengthen the friendship!
Till JDK 10, running java applications in linux containers was a bit tricky and requires additional setup to avoid surprises. These issues does not affect only older versions of Java (prior to 10), but also some tools that collect information from the execution environment like top, free and ps. That’s
How to find the first element of Stream in Java 8 – findFirst() Example
In Java 8, you can use the Stream.findFirst() method to get the first element of Stream in Java. This is a terminal operation and often us…
When to use PUT or POST in RESTful Web Service
Blog about Programming, Design, Java, Tutorial, Examples, Interview Questions, Java 5, 6, 7, 8, 9 features, multithreading, Linux, UNIX and tips.
Converting Java Map to List – Spring Framework Guru
Converting a Java Map to a List is a very common programming task for Java programmers. Here, we look at several ways you can convert a Java Map to a List.
Multi-Tenancy With EJB 3.1 and JPA 2.0 – Steve Hostettler
In this post, we look at how to simulate multi-tenancy with several datasources using JPA 2.0
Java EE MVC: Handling Form Validation – DZone Java
Let’s learn a lesson from JAX-RS and use some bean validation annotations to help make our form validation process simple and easy in Java EE MVC projects.
A Kotlin Wishlist for Java – DZone Java
Here are one dev’s favorite features in Kotlin, like a focus on immutability and final by default method parameters, and thoughts on bringing them to Java.
Oracle plans to dump risky Java serialization
A “horrible mistake” from 1997, the Java object serialization capability for encoding objects has serious security issues
Exact Matching of a String Containing a Wild Card in QueryDSL
On one of our recent projects, our client asked for a single search field that would be able to sear…
Get started with Servlet 4.0
Servlet 4.0 fully integrates HTTP/2’s server push technology, and also enables runtime discovery of a servlet’s mapping URL. With video demonstrations and code examples, this hands-on tutorial gets you started with HTTP/2 server push and the new HttpServletMapping interface in Java servlet and JSF applications.
Java Weekly, Issue 229 | Baeldung
This week, Spring Boot 2.0 and metrics, a deep insight into Gradle performance testing, and a cool write-up about problems related to running Java in Docker.
Void methods as behavior black holes
This post could have been titled ‘Void methods considered harmful’, if ‘considered harmful’ essays w…