Stream stream, method reference

Stream stream, method reference Chapter 1 Stream Speaking of Stream, it is easy to think of I/O Stream, but in fact, who stipulates that "stream" must be "IO stream"? In Java 8, thanks to Lambda The functional programming from the past introduces a new concept of Stream to solve the existing shortcomings of the existing c ...

Posted by filteredhigh on Fri, 09 Sep 2022 21:06:33 +0300

Analysis of LinkedList source code of List sub-interface of java collection framework

LinkedList LinkendList is a two-way linked list and implements the Deque ue interface, which can be used as a queue. Although LinkendList is a linear structure, the data is not stored as a linear interface, but as data and address of the next node in each node, Cloneable interface, copy support, and java.io.Serializable support serialization a ...

Posted by bugcoder on Tue, 06 Sep 2022 20:59:47 +0300

Java Web Basics - HTML and css

catalogue Edit HTML basic tag Entity symbol form Cell merge, th label Background color and picture picture Hyperlinks list Forms (relatively important to Java programmers User registration form and drop-down list file control and hidden control readonly and disable maxlength attribute id attribute div and span editing Three way ...

Posted by karq on Mon, 05 Sep 2022 21:22:32 +0300

Let you quickly understand the factory pattern

Tip: After the article is written, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right foreword ` The factory pattern is divided into simple factory (not included in the 23 design patterns), factory method, and abstract method; here I will summarize and explain t ...

Posted by brad.techguy on Mon, 05 Sep 2022 04:46:57 +0300

ReentrantLock lock related methods

catalogue Implementation class of Lock interface ReentrantLock method ReentrantLockTest test Thread for testing t1 test Release the reentry lock correctly Get the current number of reentries t1t2 test Use the islocked() method to detect the lock state t1t3 test Use the trylock method to attempt to acquire a lock U ...

Posted by wxflint on Sun, 04 Sep 2022 22:34:19 +0300

[Java]Basic knowledge of interview

#[Java]Basic knowledge of interview review it yourself foreword Looking for a job recently, discipline the basics of Java 1. Basic data types 1. Difference and conversion between int and Interger the difference 1. Integer is a wrapper class for int, which is a basic data type of java 2. Integer variables must be instantiated ...

Posted by tengkie on Sun, 04 Sep 2022 12:38:21 +0300

Simple use of Dubbo and Realization of Streaming communication based on Triple protocol

For commercial reproduction, please contact the author for authorization. For non-commercial reproduction, please indicate the source.For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.License: signature - non-commercial use - sharing in the same way 4.0 International (CC BY-NC-SA ...

Posted by avillanu on Thu, 01 Sep 2022 23:07:53 +0300

Notes on interfaces, polymorphism, inner classes, and more!

1. Static The static keyword can modify member variables and member methods basic concept: static member belongs to class It can be accessed through the class name, and is generally modified with public classname.propertyname; classname.methodname(); can also be accessed by object name (not recommended) Memory explanation: Sta ...

Posted by ess14 on Wed, 31 Aug 2022 03:28:19 +0300

Apache Commons Bridge For Scala

Motivation and preparation Apache Commons It is a large and rich set of tool libraries. I first came into contact with this code base when I participated in a Java project a few years ago, and it is now a must-have tool for developing Java/Scala projects. I am currently mainly using commons lang3 . This repository contains several extensions ...

Posted by KindredHyperion on Mon, 29 Aug 2022 02:59:05 +0300

Redis advanced practice

Redis advanced practice transaction management Comparison between redis and mysql redis slow log queryredis high availability and cluster redis master-slave replication Synchronization mechanism**Master slave replication principle****Command propagation**SYNC and PSYNCConsistency of redis replication ...

Posted by ben2.0 on Sat, 27 Aug 2022 14:01:57 +0300