Netty series: the Reference count in the JVM is also found in netty

brief introductionWhy are there so many JAVA programmers in the world? One of the important reasons is that compared with C + +, JAVA does not need to consider the release of objects, and everything is completed by the garbage collector. In the modern programming world that advocates simplicity, there are fewer and fewer experts who can speak C ...

Posted by kooper on Mon, 14 Feb 2022 10:44:03 +0100

Leetcode3-4 (longest substring without repeated characters, finding the median of two positive arrays)

1. Longest substring without repeated characters ① Violent solution According to the topic, convert the string to char type, cycle once, and then use a temp variable of temporary StringBuffer type for judgment. If the current byte does not exist in the temp string, it will be traced. Otherwise, it will be intercepted, and then continue to run ...

Posted by TCovert on Mon, 14 Feb 2022 06:51:08 +0100

Java byte buffer stream & & character stream

0. Character stream and byte stream 1. Byte buffer stream 1.1 byte buffer stream construction method 1. Introduction to byte buffer stream lBufferOutputStream: this class implements buffered output stream. By setting up such an output stream, an application can write bytes to the underlying output stream without causing a call to the ...

Posted by Dave2711 on Mon, 14 Feb 2022 05:46:47 +0100

Detailed explanation of HashMap automatic capacity expansion mechanism source code

1, Introduction HashMap's source code, which we have interpreted before, is an array plus a linked list. If the linked list is too long, it will split into a red black tree. The automatic capacity expansion mechanism is not detailed. Let's take a look at it in detail today 2, Capacity expansion mechanism Let's start with the conclusion: T ...

Posted by MrLister on Mon, 14 Feb 2022 05:01:28 +0100

Goodbye, single dog! There are six ways for Java to create objects. You don't have to lick the dog anymore..

backgroundIt's the annual Valentine's day again. I wish all programmers have lovers and get married!Today, the official account was advertised and temporarily pigeon. This Valentine's Day is a little hurt. Fortunately, there is no pigeon..What should I write on Valentine's day?!You must have a lot of single dog s, right?It doesn't matter. Stack ...

Posted by codebuilder on Mon, 14 Feb 2022 04:54:57 +0100

Detailed explanation of HashMap automatic capacity expansion mechanism source code

1, IntroductionHashMap's source code, which we have interpreted before, is an array plus a linked list. If the linked list is too long, it will split into a red black tree. The automatic capacity expansion mechanism is not detailed. Let's take a look at it in detail today2, Capacity expansion mechanismLet's start with the conclusion:The capacit ...

Posted by JasonMWaldo on Mon, 14 Feb 2022 04:44:57 +0100

Java foundation - network programming

B/S and C/S architecture B/S: Browser / server, which interacts with the server based on the browser program C/S: client / server, which interacts with the server based on the client program Java write server program 1. Meet business needs 2. Handle high concurrency 3. Big data processing Network protocol Syntax: structure of ...

Posted by furma on Mon, 14 Feb 2022 03:02:36 +0100

Spring mvc03: RestFul style and Controller

Controller controller The controller is responsible for providing the behavior of accessing the application, which is usually implemented by interface definition or annotation definition. The controller is responsible for parsing the user's request and transforming it into a model. A spring controller can be contained in more than one sprin ...

Posted by Cinds on Mon, 14 Feb 2022 02:58:12 +0100

35 spring MVC (Introduction to ssm and microservices, temporary)

1. Spring MVC overview 1.1 spring MVC concept Spring MVC is also called Spring web mvc. Spring is a built-in MVC framework in spring 3 Publish after 0. Spring MVC framework solves the common problems in WEB Development (parameter receiving, file uploading, form verification, etc.), and it is simple to use and has nothing to do with spring Sea ...

Posted by shelbytll on Mon, 14 Feb 2022 02:43:06 +0100

Application and principle of ThreadPoolExecutor thread pool

1. Custom thread pool Thread is a kind of system resource. Every time it is created, it will consume some system resources. If a new thread is created for each task in a high concurrency scenario, it will occupy a lot of system space and even cause the problem of memory overflow. Moreover, the number of threads cannot be too large. If there ...

Posted by Hoangsta on Mon, 14 Feb 2022 02:04:24 +0100