Java Concurrent Programming

Relationship among process, thread and co process Process: in essence, it is an independently executed program. Process is the basic concept of resource allocation and scheduling by the operating system. The operating system is an independent unit for resource allocation and scheduling.Thread: it is the smallest unit that the operating system ...

Added by PHPMan on Mon, 07 Mar 2022 19:16:02 +0200

Java expression evaluation engine Aviator

Environment: Java8 + aviator5 two point five Introduction to Aviator Aviator is a high-performance and lightweight expression evaluation engine implemented in java language, which is mainly used for dynamic evaluation of various expressions. Now there are many open source java expression evaluation engines available. Why do you need avatar? ...

Added by samvelyano on Fri, 04 Mar 2022 07:11:02 +0200

[Java] reflection, enumeration, Lambda expression

1, Reflection 1 Definition The reflection mechanism of Java is to know all the properties and methods of any class in the running state; For any object, we can call any of its methods and properties. Since we can get it, we can modify some type information; This function of dynamically obtaining information and dynamically calling object ...

Added by panic! on Tue, 01 Mar 2022 09:22:31 +0200

Proficient in Python lambda -- day 26

preface 🥇 Author introduction: high quality creator and data development engineer in Python field🥳 Inspirational to become a Python full stack engineer, pay attention to me and find more wonderful~📣 This article has been included in the Python full stack series column: 100 days proficient in Python, from entry to employment🎉 Wel ...

Added by qumar on Mon, 21 Feb 2022 03:25:28 +0200

A piece of code was refactored six times by the boss, and my mentality collapsed

preface Hi, Hello, I'm Milo. I'm back 🙈 Come in and gossip for everyone and see what I've done myself? Recently, the company received a new project of agricultural products trading website. Because of a code reconstruction problem, it almost got into trouble with the boss. I thought it was the boss who deliberately made trouble for me. ...

Added by QbertsBrother on Fri, 18 Feb 2022 14:11:07 +0200

Java8 Lambda expressions and Stream API: Lambda expressions

Reprinted from This article mainly explains the Java8 Stream API, but to explain this part, you need the knowledge of anonymous inner classes, lambda expressions and functional interfaces. This article will be divided into two articles to explain the above contents, which readers can refer to as needed. Java anonymous inner classes, lambda exp ...

Added by Clandestinex337 on Thu, 10 Feb 2022 16:19:49 +0200

Detailed explanation of Java method reference

1, Method reference (1) Experience method reference When using Lambda expressions, the code we actually pass in is a solution: operate with parametersThen consider a case: if the same scheme already exists in the operation scheme specified in Lambda, is it necessary to write duplicate logic?The answer must be no needHow do we use the existing ...

Added by schajee on Wed, 09 Feb 2022 01:30:42 +0200

Ctrip four sides: talk about the evolution process of Lambda expression!

preface The basis for using Lambda is that there must be a corresponding function interface (function interface refers to the interface with only one abstract method inside). This is consistent with the fact that Java is a strongly typed language, which means that you can't write Lambda expressions arbitrarily anywhere in the code. In fact, th ...

Added by willeh_ on Mon, 31 Jan 2022 14:57:24 +0200

Responsive programming

1, Java8 functional programming / Lambda 1. What is a lambda expression lambda expressions are essentially anonymous methods. Let's look at the following example: public int add(int x, int y) { return x + y; } After being converted to lambda expression, it looks like this: (int x, int y) -> { return x + y; } The parameter typ ...

Added by cool-palace-ceo on Sun, 16 Jan 2022 16:06:41 +0200

Detailed explanation of Lambda expression and functional interface

catalogue 1, Functional interface 1. Syntax: 2. Functional interface features: 3. Functional interface summary: 2, lambda 1.lambda preconditions: 2. Syntax of lambda expression: 3. Expression cases 4. There are three ways to write lambda expressions: Expression single statement expression: statement block: Reference method referen ...

Added by Shawazi on Wed, 12 Jan 2022 12:51:43 +0200