New feature of JDK10: local variable type var

brief introduction java is remarkable in the world with its object-oriented nature and has developed vigorously.During the development of the language, in order to make the java language more concise and convenient to use, JDK is also constantly improving. Today, this article introduces the local variable type var introduced in JDK10. Why do we ...

Added by melittle on Sun, 17 May 2020 03:21:33 +0300

java introduction | eight basic types

1. Foundation type 1.1 INTRODUCTION 1.2 exercise 1: test maximum and minimum Create a Basic project Create cn.qile.basic package Create test1 scope.java package cn.qile.basic; //This class is used to test the value range public class Test1_Scope { public static void main(String[] args) { //Test integer data range byte short int lo ...

Added by Ayon on Fri, 15 May 2020 18:28:07 +0300

ThreadPoolExecutor Source Analysis-execute() Method

Preface The previous two articles paved the way for analyzing thread pool sources Bit Operations in the Java ThreadPoolExecutor ThreadPool ThreadPoolExecutor Source Analysis Foundation - How ThreadPool works Look back at what you've said before (you need to know it beforehand): Several states of thread pool RUNNING, SHUTDOWN, etc. Switching ...

Added by Zack on Thu, 14 May 2020 19:13:18 +0300

How to use Java 8 functional programming more elegantly?

Stream and Optional in Java 8 bring us the fun of functional programming, but Java still lacks many key features of functional programming. Lambda Expressions Optional and Stream It's just the tip of the iceberg for functional programming. This also led to the emergence of varvr and functionlajava class libraries, both of which originated from ...

Added by examiz on Thu, 14 May 2020 08:49:26 +0300

The SpringBoot Getting Started series implements uniform exception handling, which is as simple as that!

Next, we will focus on how to use uniform exception handling in SpringBoot applications.How do I reuse exception data with normal business data and return it as a json?   Why uniform exception handling Currently, our project architecture is basically a separate front-end and back-end model: developed using Restful interface protocol, the fo ...

Added by DeGauss on Wed, 13 May 2020 20:00:56 +0300

K8S implementation of gray-scale publishing based on ingress nginx

Previously introduced Gray publishing with ambassador , how to use the implementation of ingre nginx. introduce Ingress nginx is a K8S ingress tool, which supports the configuration of Ingress Annotations to achieve gray-scale publishing and testing in different scenarios.   Nginx Annotations Four Canary rules are supported: nginx.in ...

Added by 1042 on Wed, 13 May 2020 09:58:48 +0300

fork function and vfork function

fork function In many applications, creating multiple processes is an effective method for task decomposition. For example, a network server process can create a new subprocess to process each request while listening for client requests. At the same time, the server process will continue to listen for more client connection requests. Decomposin ...

Added by vinny69 on Wed, 13 May 2020 07:56:54 +0300

C++ Implementation of DotCode Scavenging

Dynamsoft Barcode SDK v7.4 supports the DotCode type.I wrote a simple example in C++. DotCode Desktop Scavenger Two types of interfaces are provided in Dynamsoft SDK: One is a direct sweep interface, such as decodeFile, decodeBuffer. One is the interface StartFrameDecoding(), StopFrameDecoding(), and AppendFrame(), designed for video streaming ...

Added by lisa3711 on Tue, 12 May 2020 10:01:48 +0300

What about Java Concurrent Programming Actual 04 Deadlock?

Series of Java Concurrent Programming Articles Java Concurrent Programming Actual 01 Bug Source for Concurrent ProgrammingJava Concurrent Programming Practice 02 How Java Solves Visibility and Orderliness ProblemsJava Concurrent Programming Actual 03 Mutual Exclusion Lock Solves Atomic Problems premise In the final example of the third article, ...

Added by Thikho on Tue, 12 May 2020 06:08:58 +0300

Illustrate IO models and related technologies for Linux

Blocking IO Model (Blocking I/O) The Linux kernel initially provides read and write blocking operations. When a client connects, a corresponding file descriptor (0 standard input, 1 standard output, 2 standard error output) is generated in the file descriptor directory of the corresponding process (/proc/process number/fd), such as FD 8, FD 9 ...

Added by eulalyn09 on Sun, 10 May 2020 11:54:46 +0300