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

Image may be NSFW.
Clik here to view.

An Introduction to Java.util.Hashtable Class

1. Overview Hashtable is the oldest implementation of a hash table data structure in Java. The HashMap is the second implementation, which was introduced in JDK 1.2. Both classes provide similar...

View Article


Image may be NSFW.
Clik here to view.

Kotlin and Javascript

1. Overview Kotlin is a next-generation programming language developed by JetBrains. It gains popularity with the Android development community as a replacement for Java. Another exciting feature of...

View Article


Image may be NSFW.
Clik here to view.

Spring Data Annotations

1. Introduction Spring Data provides an abstraction over data storage technologies. Therefore, our business logic code can be much more independent of the underlying persistence implementation. Also,...

View Article

Image may be NSFW.
Clik here to view.

Spring Data REST Events with @RepositoryEventHandler

1. Introduction While working with an entity, the REST exporter handles operations for creating, saving, and deleting events. We can use an ApplicationListener to listen to these events and execute a...

View Article

Image may be NSFW.
Clik here to view.

Example of Downloading File in a Servlet

1. Overview A common feature of web applications is the ability to expose a file for download. In this tutorial, we’ll cover a simple example of creating a downloadable file and serving it from a Java...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 231

Here we go… 1. Spring and Java >> From Java to Kotlin and Back [allegro.tech] A controversial but interesting read about one team’s story which migrated from Java 8 to Kotlin… and then to Java...

View Article

Image may be NSFW.
Clik here to view.

Spring Boot Annotations

1. Overview Spring Boot made configuring Spring easier with its auto-configuration feature. In this quick tutorial, we’ll explore the annotations from the org.springframework.boot.autoconfigure and...

View Article

Image may be NSFW.
Clik here to view.

Spring Web Annotations

1. Overview In this tutorial, we’ll explore Spring Web annotations from the org.springframework.web.bind.annotation package. 2. @RequestMapping Simply put, @RequestMapping marks request handler...

View Article


Image may be NSFW.
Clik here to view.

Spring Scheduling Annotations

1. Overview When single-threaded execution isn’t enough, we can use annotations from the org.springframework.scheduling.annotation package. In this quick tutorial, we’re going to explore the Spring...

View Article


Image may be NSFW.
Clik here to view.

A Guide to Spring Data Key Value

1. Introduction The Spring Data Key Value framework makes it easy to write Spring applications that use key-value stores. It minimizes redundant tasks and boilerplate code required for interacting...

View Article

Image may be NSFW.
Clik here to view.

Processing JSON with Kotlin and Klaxson

1. Overview Klaxon is one of the open source libraries that we can use to parse JSON in Kotlin. In this tutorial, we’re going to look at its features. 2. Maven Dependency First, we’ll need to add the...

View Article

Image may be NSFW.
Clik here to view.

Guide to the this Java Keyword

1. Introduction In this tutorial, we’ll take a look at the this Java keyword. In Java, this keyword is a reference to the current object whose method is being called. Let’s explore how and when we can...

View Article

Image may be NSFW.
Clik here to view.

Guide to the super Java Keyword

1. Introduction In this quick tutorial, we’ll take a look at the super Java keyword. Simply put, we can use the super keyword to access the parent class.  Let’s explore the applications of the core...

View Article


Image may be NSFW.
Clik here to view.

Returning a JSON Response from a Servlet

1. Introduction In this quick tutorial, we’ll create a small web application and explore how to return a JSON response from a Servlet. 2. Maven For our web application, we’ll include javax.servlet-api...

View Article

Image may be NSFW.
Clik here to view.

Spring Data Reactive Repositories with MongoDB

1. Introduction In this tutorial, we’re going to see how to configure and implement database operations using Reactive Programming through Spring Data Reactive Repositories with MongoDB. We’ll go over...

View Article


Image may be NSFW.
Clik here to view.

Visitor Design Pattern in Java

1. Overview In this tutorial, we’ll introduce one of the behavioral GoF design patterns – the Visitor. First, we’ll explain its purpose and the problem it tries to solve. Next, we’ll have a look at...

View Article

Image may be NSFW.
Clik here to view.

The Thread.join() Method in Java

1. Overview In this tutorial, we’ll discuss the different join() methods in the Thread class. We’ll go into the details of these methods and some example code. Like the wait() and notify() methods,...

View Article


Image may be NSFW.
Clik here to view.

Method Parameter Reflection in Java

1. Overview Method Parameter Reflection support was added in Java 8. Simply put, it provides support for getting the names of parameters at runtime. In this quick tutorial, we’ll take a look at how to...

View Article

Image may be NSFW.
Clik here to view.

Performance of Java Mapping Frameworks

1. Introduction Creating large Java applications composed of multiple layers require using multiple models such as persistence model, domain model or so-called DTOs. Using multiple models for...

View Article

Image may be NSFW.
Clik here to view.

Spring – Injecting Collections

1. Introduction In this tutorial, we’re going to show how to inject Java collections using the Spring framework. Simply put, we’ll demonstrate examples with the List, Map, Set collection interfaces....

View Article
Browsing all 4535 articles
Browse latest View live