HashMap underlying principle and jdk1 8 source code interpretation [spitting blood and sorting out 1.3w long text]
1, Foreword
Write in front: it took a day to sort out the data collected by small codewords. It's helpful for you. One key three times in a row. Ha, thank you!!
HashMap is often encountered in our daily development. The source code and underlying principle of HashMap must be asked in the interview. Therefore, we should master it, which is ...
Added by vweston on Thu, 17 Feb 2022 16:03:07 +0200
Design mode: structural mode
Structural pattern mainly involves how to combine various objects in order to obtain a better and more flexible structure. Although the object-oriented inheritance mechanism provides the most basic function of subclass extending the parent class, the structural pattern not only uses inheritance simply, but also realizes more flexible functions ...
Added by rainbowsntoffee on Thu, 17 Feb 2022 15:52:32 +0200
Servlet features, servlet implementation, servlet life cycle
1, What is a Servlet
servlet is one of the Java EE specifications, which is the interface Servlet is one of the three major components of Java web. The three major components are: servlet program, filter and Listener listener. Servlet is a Java applet running on the server. It can receive the request sent by the client and respond to the da ...
Added by davard on Thu, 17 Feb 2022 15:11:26 +0200
Self study JAVA classes and objects, object memory diagram, member variables and local variables, encapsulation and manufacturing methods
1. Classes and objects
Comparison of object-oriented and process oriented ideas:
Process oriented: it is a process centered programming idea. Each step of realizing the function is realized by itself.
Object oriented: it is an object-centered programming idea, which realizes specific functions by commanding objects.
1.1 relationship bet ...
Added by icon4tech on Thu, 17 Feb 2022 15:05:47 +0200
LengthFieldBasedFrameDecoder custom protocol solves the problems of sticking and unpacking
1, Introduction
1.1 function of lengthfieldbasedframedecoder
The LengthFieldBasedFrameDecoder can customize the length to solve the problem of TCP packet sticking. Therefore, it is also called "basedlength"
1.2 TCP packet sticking and packet sticking
TCP sticky packet refers to that several data packets sent by the sender are glu ...
Added by v4g on Thu, 17 Feb 2022 14:56:04 +0200
Mybatis study notes
MyBatis study notes
Knowledge preparation:
JDBCMysqlMavenJunit
1. Introduction
1.1. What is MyBatis?
MyBatis is an excellent persistence layer framework It supports custom SQL, stored procedures, and advanced mapping. MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can confi ...
Added by calumstevens on Thu, 17 Feb 2022 14:46:27 +0200
vulnerable! spring, which you can't learn, is integrated with MyBatis. The girl next door easily completed it and sent a login verification case!
Integration of spring and MyBatista in spring learning (1)
1. Integration of spring and MyBatista
1.1 integration process and ideas
1.1.1 Mybatis
As we all know, mybatis evolved from ibatis of Apache and is a persistence layer framework based on Java. Mybatis annotation 𞓜 xml file is used for configuration or original mapping.
Mybatis refe ...
Added by DanDaBeginner on Thu, 17 Feb 2022 14:06:09 +0200
Writer: character output stream
Writer: character output stream base class
Structure diagram
OutputStreamWriter character output stream
summary Transform stream Java io. Outputstreamwriter is a subclass of Writer and a bridge from character stream to byte stream. It encodes characters into bytes using the specified character set. The character set it uses can be spe ...
Added by jeffshead on Thu, 17 Feb 2022 13:52:17 +0200
Adapter mode of structural mode
1. Adapter mode
Adapter pattern is a structural design pattern that enables objects with incompatible interfaces to cooperate with each other. The adapter can act as a wrapper between two objects. It will receive calls to one object and convert it to a format and interface recognized by another object.
2. The adapter mode is suitable for appl ...
Added by DanDaBeginner on Thu, 17 Feb 2022 13:32:23 +0200
Fundamentals of java interview
1.JDK,JRE,JVM
JDK: short for Java Development Kit, Java Development Kit, provides the development environment and running environment of Java.
JRE: short for Java Runtime Environment, Java Runtime Environment, which provides the required environment for the operation of Java. Including Java virtual machine and core class library required by J ...
Added by smoked1 on Thu, 17 Feb 2022 12:52:36 +0200