Quantcast
Channel: Baeldung
Browsing all 4535 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Guide to Try in Javaslang

1. Overview In this article, we will look at a functional way of error handling other than a standard try-catch block. We will be using Try class from Javaslang library that will allow us to create...

View Article


Image may be NSFW.
Clik here to view.

Guide to Guava’s Ordering

1. Overview In this article, we will look at Ordering class from the Guava library. Ordering class implements a Comparator interface and gives us a useful fluent API for creating and chaining...

View Article


Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 162

Lots of weekend reading for this week. Let’s jump right in… 1. Spring and Java >> Java 9 Enters First Bug Fixing Round [infoq.com] Java 9 vs Bugs – the first round >> Compilation of Java...

View Article

Image may be NSFW.
Clik here to view.

A Guide to ConcurrentMap

1. Overview Maps are naturally one of the most widely style of Java collection. And, importantly, HashMap is not a thread-safe implementation, while Hashtable does provide thread-safety by...

View Article

Image may be NSFW.
Clik here to view.

Constructor Injection in Spring with Lombok

1. Introduction Lombok is an extremely useful library overcoming boilerplate code. If you are not familiar with it yet, I highly recommend taking a look at the previous tutorial – Introduction to...

View Article


Image may be NSFW.
Clik here to view.

Working with Apache Thrift

1. Overview In this article, we will discover how to develop cross-platform client-server applications with the help of RPC framework called Apache Thrift. We will cover: Defining data types and...

View Article

Image may be NSFW.
Clik here to view.

Guide to Guava’s PreConditions

1. Overview In this tutorial, we’ll show how to use the Google Guava’s Preconditions class. The Preconditions class provides a list of static methods for checking that a method or a constructor is...

View Article

Image may be NSFW.
Clik here to view.

Dealing with Backpressure with RxJava

1. Overview In this article, we will look at the way the RxJava library helps us to handle backpressure. Simply put – RxJava utilizes a concept of reactive streams by introducing Observables, to which...

View Article


Image may be NSFW.
Clik here to view.

Guide to PriorityBlockingQueue in Java

1. Introduction In this article, we’ll focus on the PriorityBlockingQueue class and go over some practical examples. Starting with the assumption that we already know what a Queue is, we will first...

View Article


Image may be NSFW.
Clik here to view.

Spring @RequestMapping New Shortcut Annotations

1. Overview Spring 4.3. introduced some very cool method-level composed annotations to smooth out the handling @RequestMapping in typical Spring MVC projects. In this article, we will learn how to use...

View Article

Image may be NSFW.
Clik here to view.

Spring Security – Cache Control Headers

1. Introduction In this article, we’ll explore how we can control HTTP caching with Spring Security. We’ll demonstrate its default behavior, and also explain the reasoning behind it. We’ll then look...

View Article

Image may be NSFW.
Clik here to view.

Working with Microsoft Excel in Java

1. Introduction In this tutorial, we will demonstrate the use of the Apache POI and JExcel APIs for working with Excel spreadsheets. Both libraries can be used to dynamically read, write and modify...

View Article

Image may be NSFW.
Clik here to view.

Guide to Java 8 groupingBy Collector

1. Introduction In this article, we’ll see how the groupingBy collector works using various examples. To understand the material covered in this article, a basic knowledge of Java 8 features is...

View Article


Image may be NSFW.
Clik here to view.

JAX-RS Client with Jersey

1. Overview Jersey is an open source framework for developing RESTFul Web Services. It also has great inbuilt client capabilities. In this quick tutorial, we will explore the creation of JAX-RS client...

View Article

Image may be NSFW.
Clik here to view.

Hibernate One to Many Annotation Tutorial

1. Introduction This quick Hibernate tutorial will take you through an example of one-to-many mapping using JPA annotations – an alternative to the XML descriptor approach. In simple terms,...

View Article


Image may be NSFW.
Clik here to view.

Avoiding the ConcurrentModificationException in Java

1. Introduction In this article, we’ll take a look at the ConcurrentModificationException class. First, we’ll give an explanation how it works, and then prove it by using a test for triggering it....

View Article

Image may be NSFW.
Clik here to view.

Guide to WeakHashMap in Java

1. Overview In this article, we will be looking at a WeakHashMap from the java.util package. We will see how that construct is useful when implementing a cache. The WeakHashMap is a hashtable-based...

View Article


Image may be NSFW.
Clik here to view.

Strategy Design Pattern in Java 8

1. Introduction In this article, we’ll look at how we can implement the strategy design pattern in Java 8. First, we’ll give an overview of the pattern, and explain how it’s been traditionally...

View Article

Image may be NSFW.
Clik here to view.

Java Web Weekly, Issue 163

A full week in the Java ecosystem. Here we go… 1. Spring and Java >> Java Module System Hands-On Guide [sitepoint.com] As Java 9 is getting closer and closer, it might be worth looking at a...

View Article

Image may be NSFW.
Clik here to view.

Quick Intro to Full-Text Search with ElasticSearch

1. Overview Full-text search queries and performs linguistic searches against documents. It includes single or multiple words or phrases and returns documents that match search condition....

View Article
Browsing all 4535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>