Java stack memory, off heap memory, zero copy analysis and code implementation

The official account of WeChat: Java essays Follow to learn more about Java related technology sharing. Questions or suggestions, welcome to the official account message! Zero copy, which is a familiar term, is often mentioned in the interview of development post. Recently, after reviewing the basic principles of Netty, I went through th ...

Posted by fredroines on Fri, 11 Feb 2022 04:49:30 +0100

Database lab challenge TASK-3 (Alibaba cloud)

brief introduction The scenario introduces how to visually configure the data of student achievement through AnalyticDB, generate the large screen and dashboard of student achievement distribution with one click, and produce the achievement report by cycle through task arrangement. relevant Experience Lab Developers master what and how of cl ...

Posted by freakus_maximus on Fri, 11 Feb 2022 04:07:53 +0100

The kth largest element in the array

Topic introduction Question 215: https://leetcode-cn.com/problems/kth-largest-element-in-an-array/ The kth largest element was found in an unordered array. Note that you need to find the k-th element of the array instead of the largest element. analysis To find the k-largest element in the array, the first thing you can think of is, of cou ...

Posted by McManCSU on Fri, 11 Feb 2022 03:38:52 +0100

Data transmission of Android Audio playing audio

Data transmission of AudioTrack brief introduction Continued AudioTrack establishment channel for playing audio The unique handle value output of the channel is found. This output is essentially the key value of (output, PlaybackThread) saved in the form of key value after AudioFlinger creates the PlaybackThread. Through output, you can fin ...

Posted by timecatcher on Fri, 11 Feb 2022 03:12:32 +0100

No.3.1_ 28_ 5. Detailed explanation of ChronoField class of jdk8 new feature [Date]

Related links CSDN_GroupiesM notes sorting No.3.1_25 JavaSE-JDK8 new feature P1 [Lambda expression]No.3.1_26 JavaSE-JDK8 new feature P2 [Stream stream] operation setNo.3.1_27 JavaSE-JDK8 new feature P3 [Optional container class] handles null valuesNo.3.1_28 JavaSE-JDK8 new feature P4 [Date] API No.3.1_ 28_ 5. Detailed explanation of Ch ...

Posted by myfafa on Fri, 11 Feb 2022 02:00:13 +0100

Java basic syntax - process control statement

1, Branch statement 1.if statement Conditional statement, which determines whether to execute its statement block according to the value of the expression Syntax: if (Boolean expression) { <Statement block> } Common Boolean expression operators: == > < >= <= != && || ! Code example: int num = ...

Posted by cityboy101 on Fri, 11 Feb 2022 01:25:28 +0100

On the way of creating objects in Java

Four ways to create objects in Java 1. Create objects through new Creating objects through new is the most common way in Java and the way we first learned to create objects. However, creating objects through new will increase the overall coupling degree. We should pay attention to the impact of coupling degree in our future programming life, ...

Posted by designationlocutus on Fri, 11 Feb 2022 00:57:18 +0100

It is said that you can master Spring Boot integration, timed tasks and asynchronous calls in ten minutes?

1. Scheduled tasks In project development, we often need timed tasks to help us do some content, such as sending SMS / station information regularly, data summary and statistics, business monitoring, etc., so we need to use our timed tasks. It is very simple to write timed tasks in Spring Boot. The following is an example of how to create time ...

Posted by scialom on Fri, 11 Feb 2022 00:07:07 +0100

On regular expressions, this one is enough!! (including complete cases, recommended Collection)

Master these regular expressions and be able to write a lot less code. Glacier strongly recommends that you collect them!! Hello, I'm glacier~~ It is by mastering these regular expressions that glacier writes an average of 200 lines of code less than others every day, which greatly improves the efficiency of R & D. Mastering regular ex ...

Posted by fleymingmasc on Thu, 10 Feb 2022 23:03:18 +0100

Spring IOC: control inversion

Steps for using the Spring framework Join dependencyCreate class: interface, implementation class and class without interfaceCreate a Spring configuration file and declare it with < bean >Using the object in the container, use the method getBean() of ApplicationContext IOC: control reversal The implementation of ioc technology uses di ...

Posted by bharrison89 on Thu, 10 Feb 2022 22:10:58 +0100