加载中
How to Install Java on Debian 9

In this tutorial, we will walk through installing Java on Debian 9. Java is one of the most popular programming languages used to build different kinds of applications and syste...

01/18 20:13
128
Using Java Assertions

1. Introduction The Java assert keyword allows developers to quickly verify certain assumptions or state of a program. In this article, we'll take a look at how to use the Java ...

01/29 17:19
100
Java – Random Long, Float, Integer and Double

1. Generate an Unbounded Long Let's start with generating a Long: 1 2 3 4 @Test public void givenUsingPlainJava_whenGeneratingRandomLongUnbounded_thenCorrect() { long generatedL...

01/29 21:57
90
Guide to the Volatile Keyword in Java

1. Overview In this quick article, we'll focus on a foundational but often misunderstood concept in the Java language – the volatile keyword. In Java, each thread has a separat...

01/29 17:44
107
Class Loaders in Java

1. Introduction to Class Loaders Class loaders are responsible for loading Java classes during runtime dynamically to the JVM (Java Virtual Machine). Also, they are part of the ...

01/28 23:02
208
Java Custom Annotations Example

In this tutorial, we will show you how to create two custom annotations – @Test and @TestInfo, to simulate a simple unit test framework. P.S This unit test example is inspired ...

01/30 16:42
126
Wrapper Classes in Java

1. Overview As the name suggests, wrapper classes are objects encapsulating primitive Java types. Each Java primitive has a corresponding wrapper: boolean, byte, short, char, in...

01/29 20:26
86
Spring Boot JDBC Examples

In this tutorial, we will show you how to use Spring Boot JDBC JdbcTemplate and NamedParameterJdbcTemplate. Technologies used : Spring Boot 2.1.2.RELEASE Spring JDBC 5.1.4.RELEA...

Java PriorityQueue class

Java PriorityQueue class is a queue data structure implementation in which objects are processed based on their priority. It is different from standard queues where FIFO (First-...

01/17 22:43
96
Spring Boot and Kotlin

1. Overview A big announcement was made back in January in the Spring ecosystem: Kotlin support is coming to Spring Framework 5. This means that Spring Boot 2.x will have first ...

A Guide to the finalize Method in Java

1. Overview In this tutorial, we'll focus on a core aspect of the Java language – the finalize method provided by the root Object class. Simply put, this is called before the g...

01/29 21:22
26
Quick Guide to java.lang.System

1. Overview In this tutorial, we'll take a quick look at the java.lang.System class and its features and core functionality. 2. IO System is a part of java.lang, and one of its ...

01/29 20:50
92
Guide to the Synchronized Keyword in Java

1. Overview This quick article will be an intro to using the synchronized block in Java. Simply put, in a multi-threaded environment, a race condition occurs when two or more th...

01/28 22:11
84
Java List Initialization in One Line

1. Introduction In this quick tutorial, we'll investigate how can we initialize a List using one-liners. 2. Create From an Array We can create a List from an array and thanks to...

01/30 18:38
163
Apollo java客户端使用指南

一、准备工作 二、Maven Dependency 三、客户端用法 3.1 API使用方式 3.1.1 获取默认namespace的配置 3.1.2 监听配置变化事件 3.1.3 获取公共Namespace的配置 3.1.4 获取非properties格式nam...

Concrete Class in Java

1. Introduction In this quick guide, we'll discuss the term “concrete class” in Java. First, we'll define the term. Then, we'll see how it's different from interfaces and abst...

Check If a String Is Numeric in Java

1. Introduction Oftentimes while operating upon Strings, we need to figure out whether a String is a valid number or not. In this tutorial, we’ll explore multiple ways to detec...

How to Round a Number to N Decimal Places in Java

1. Overview In this short article, we're going to look at how to round a number to n decimal places in Java. 2. Decimal Numbers in Java Java provides two primitive types that ca...

Spring Custom Qualifier Annotation

This page will walk through spring custom qualifier annotation example. A custom qualifier annotation must be created using @Qualifier annotation. The custom qualifier annotatio...

01/30 17:57
92
Java 8 – Powerful Comparison with Lambdas

1. Overview In this tutorial, we're going to take a first look at the Lambda support in Java 8 – specifically at how to leverage it to write the Comparator and sort a Collecti...

01/29 21:50
51

没有更多内容

加载失败,请刷新页面

返回顶部
顶部