IO Evolution of Java Communication-BIO

First, basic concepts Before sharing BIO, let's figure out what is blocking/non-blocking and what is synchronous/non-synchronous. 1. Blocking/non-blocking: IO read blocking between the kernel (memory) and threads (applications in JVM). 2. Sync ...

Posted by caramba on Tue, 17 Sep 2019 05:35:30 +0200

Initial Lambda expression

Article directory Lambda Basic Grammar Lambda expressions require the support of "functional interfaces" Examples of Lambda expressions Lambda Basic Grammar The basic syntax of Lambda expressions: Java 8 introduces a new operator &q ...

Posted by er0x on Sat, 14 Sep 2019 15:54:56 +0200

Java Style, Hot Deployment, Supporter behind JVM Java Agent

We don't really have many opportunities to write Java Agents in general, or we hardly need them.But in fact, we've been using it all along, and there's a lot of contact.These techniques all use Java Agent technology, so you can see why. - Debugging capabilities of individual Java IDE s, such as eclipse, IntelliJ; - Hot deployment features, su ...

Posted by genistaff on Wed, 11 Sep 2019 03:40:34 +0200

Talk about how the Callable task works? How did it get its execution results?

Talk about how the Callable task works? How did it get its execution results? Submitting a Callable task to the thread pool creates a new thread (the thread that executes the task) to execute the Callable task, but getting the execution result of the task through Future#get is in the caller thread that submits the task. Question 1: How does the ...

Posted by sabien on Fri, 06 Sep 2019 16:44:02 +0200

What's behind J.U.C. concurrent packages

Preface J.U.C is the abbreviation of java package java.util.concurrent, short for concurrent package in Chinese. It is a new basic api for writing concurrency related in jdk1.5. Java practitioners must be familiar with, at the same time, in the traffic age, concurrent packages have become a must-ask part of senior development interviews. This a ...

Posted by jmosterb on Fri, 06 Sep 2019 12:47:34 +0200

Jvm-Sandbox Source Analysis--Loading modules at startup

Preface In the last article Jvm-Sandbox Source Analysis--Startup Analysis A brief introduction to the jvm-sandbox startup process is given. In this article, we will analyze how system modules and user-defined modules are loaded during startup. At the end of the start of the profiling in the previous article, the code enters the default module m ...

Posted by zeberdeee on Fri, 06 Sep 2019 04:32:43 +0200

Alibaba Arthas--A Sharp Tool for Online Problem Analysis

Catalog 1. What is Arthas 2. What can Arthas solve? 3. Fast Installation Step 1: Download Step 2: Operation Step 3: Select the process 4. Practical use 5. Summary This blog is reprinted from Ali Open Source Java Diagnostic Tool 1. What is Arthas Arthas is ...

Posted by arundathi on Thu, 05 Sep 2019 10:34:43 +0200

java applet - simple version of multi-person chat room

Functional requirements: 1. Each time the main function is run, a client chat interface is created. 2. The client interface is divided into three parts: the public screen (displaying all the information sent by the client), the private screen (for inputting the information that the individual wants to send), and the sending button (clicking o ...

Posted by karldenton on Mon, 02 Sep 2019 14:59:07 +0200

Java Command Learning Series - javap

javap is a tool that comes with jdk and can be used for code Decompilation You can also view the bytecode generated by the java compiler. In general, few people use javap to decompile class files, because there are many mature decompilation to ...

Posted by jamjam1 on Fri, 30 Aug 2019 11:14:28 +0200

Getting Started with Spring: Explanation on the use of Spring AOP

1. What is AOP? AOP is the abbreviation of Aspect Oriented Programming, which means Face-Oriented Programming. It is a technology that unifies the maintenance of program functions through precompilation and runtime dynamic agents. You can think of AOP as a complement to OOP(Object Oriented Programming). It is mainly used in logging, performance ...

Posted by kobayashi_one on Fri, 23 Aug 2019 04:57:15 +0200