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

Image may be NSFW.
Clik here to view.

Method Overloading and Overriding in Java

1. Overview Method overloading and overriding are key concepts of the Java programming language, and as such, they deserve an in-depth look. In this article, we’ll learn the basics of these concepts...

View Article


Image may be NSFW.
Clik here to view.

Object Type Casting in Java

1. Overview The Java type system is made up of two kinds of types: primitives and references. We covered primitive conversions in this article, and we’ll focus on references casting here, to get a...

View Article


Image may be NSFW.
Clik here to view.

Code Analysis with SonarQube

1. Overview In this article, we’re going to be looking at static source code analysis with SonarQube – which is an open-source platform for ensuring code quality. Let’s start with a core question –...

View Article

Image may be NSFW.
Clik here to view.

A Practical Guide to DecimalFormat

1. Overview In this article, we’re going to explore the DecimalFormat class along with its practical usages. This is a subclass of NumberFormat, which allows formatting decimal numbers’ String...

View Article

Image may be NSFW.
Clik here to view.

Intro to Google Cloud Storage with Java

1. Overview Google Cloud Storage offers online storage tailored to an individual application’s needs based on location, the frequency of access, and cost. Unlike Amazon Web Services, Google Cloud...

View Article


Image may be NSFW.
Clik here to view.

An Intro to Spring Cloud Task

1. Overview The goal of Spring Cloud Task is to provide the functionality of creating short-lived microservices for Spring Boot application. In Spring Cloud Task, we’ve got the flexibility of running...

View Article

Image may be NSFW.
Clik here to view.

How to Detect the OS Using Java

1. Introduction There are a couple of ways to figure out the OS on which our code is running on. In this brief article, we’re going to see how to focus on doing OS detection in Java. 2. Implementation...

View Article

Image may be NSFW.
Clik here to view.

Combining Publishers in Project Reactor

1. Overview In this article, we’ll take a look at various ways of combining Publishers in Project Reactor. 2. Maven Dependencies Let’s set up our example with the Project Reactor dependencies:...

View Article


Image may be NSFW.
Clik here to view.

Java Weekly, Issue 218

Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog  Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...

View Article


Image may be NSFW.
Clik here to view.

The Checker Framework – Pluggable Type Systems for Java

1. Overview From the Java 8 release onwards, it’s possible to compile programs using the so-called Pluggable Type Systems – which can apply stricter checks than the ones applied by the compiler. We...

View Article

Image may be NSFW.
Clik here to view.

Method Handles in Java

1. Introduction In this article, we’re going to explore an important API that was introduced in Java 7 and enhanced in the following versions, the java.lang.invoke.MethodHandles. In particular, we’ll...

View Article

Image may be NSFW.
Clik here to view.

JDBC with Groovy

1. Introduction In this article, we’re going to look at how to query relational databases with JDBC, using idiomatic Groovy. JDBC, while relatively low-level, is the foundation of most ORMs and other...

View Article

Image may be NSFW.
Clik here to view.

An MVC Example with Servlets and JSP

1. Overview In this quick article, we’ll create a small web application that implements the Model View Controller (MVC) design pattern, using basic Servlets and JSPs. We’ll explore a little bit about...

View Article


Image may be NSFW.
Clik here to view.

Guide to Inheritance in Java

1. Overview One of the core principles of Object Oriented Programming – inheritance – enables us to reuse existing code or extend an existing type. Simply put, in Java, a class can inherit another...

View Article

Image may be NSFW.
Clik here to view.

An Intro to Spring Cloud Contract

1. Introduction Spring Cloud Contract is a project that, simply put, helps us write Consumer-Driven Contracts (CDC). This ensures the contract between a Producer and a Consumer, in a distributed...

View Article


Image may be NSFW.
Clik here to view.

How to TDD a List Implementation in Java

1. Overview In this tutorial, we’ll walk through a custom List implementation using the Test-Driven Development (TDD) process. This is not an intro to TDD, so we’re assuming you already have some...

View Article

Image may be NSFW.
Clik here to view.

Multi-Swarm Optimization Algorithm in Java

1. Introduction In this article, we’ll take a look at a Multi-swarm optimization algorithm. Like other algorithms of the same class, its purpose is to find the best solution to a problem by maximizing...

View Article


Image may be NSFW.
Clik here to view.

Jersey Filters and Interceptors

  1. Introduction In this article, we’re going to explain how filters and interceptors work in the Jersey framework, as well as the main differences between these. We’ll use Jersey 2 here, and we’ll...

View Article

Image may be NSFW.
Clik here to view.

Security In Spring Integration

1. Introduction In this article, we’ll focus on how we can use Spring Integration and Spring Security together in an integration flow. Therefore, we’ll set up a simple secured message flow to...

View Article

Image may be NSFW.
Clik here to view.

ASCII Art in Java

1. Overview In this article, we’ll discuss creating a graphical print of ASCII characters or Strings in Java, using concepts from the 2D graphics support of the language. 2. Drawing Strings with 2D...

View Article
Browsing all 4535 articles
Browse latest View live