JVM learning notes

1. Introduction to JVN Talk about your understanding of JVM? java8 virtual machine and previous changes and updates?OOM memory overflow, StackOverFlowError stack overflow, how to analyze?What are the common tuning parameters of the JVM?How to capture memory snapshots and analyze Dump files?What do you know about class loader in JVM? rt-jar ...

Posted by thirdeye on Tue, 30 Nov 2021 14:41:42 -0800

Usage demo of thread pool ThreadPoolExecutor

1. Example code: Runnable + ThreadPoolExecutor First create a Runnable Implementation class of interface (of course, it can also be Callable Interface. We also mentioned the area of the two above Don't MyRunnable.java import java.util.Date; public class MyRunnable implements Runnable { private String command; ...

Posted by sharal on Tue, 30 Nov 2021 13:22:58 -0800

Summary of interview high frequency ~ single linked list OJ questions

1. Force buckle 141: ring linked list Give you a head node of the linked list to judge whether there are links in the linked list. If there is a node in the linked list that can be reached again by continuously tracking the next pointer, there is a ring in the linked list. In order to represent the rings in a given linked list, the eval ...

Posted by Lateuk on Tue, 30 Nov 2021 13:11:01 -0800

Chapter 14 Job JAVA

1. What are the classifications of streams in Java? (1) Flow direction: generally divided into input and output streams Input stream: For example, System.in is an InputStream type input stream Output stream: For example, System.out is a PrintStream type output stream (2) From the reading type: generally divided into byte stream and character st ...

Posted by Gayathri on Tue, 30 Nov 2021 10:03:13 -0800

Is the snowflake algorithm really useful for System.currentTimeMillis() optimization?

As mentioned earlier, the snowflake algorithm uses System.currentTimeMillis() to obtain time. There is a saying that System.currentTimeMillis() is slow because each call will deal with the system. In the case of high concurrency, a large number of concurrent system calls are easy to affect the performance (calling it is even more time-consuming ...

Posted by JessePHP on Tue, 30 Nov 2021 08:51:27 -0800

In depth understanding of Mybatis architecture design

architecture design We can divide the functional architecture of Mybatis into three layers: API interface layer: interface APIs provided for external use. Developers use these local APIs to manipulate the database. As soon as the interface layer receives the call request, it will call the data processing layer to complete the specific da ...

Posted by killfall on Tue, 30 Nov 2021 07:38:13 -0800

Abstract classes and interfaces

1, Abstract class 1. A class containing abstract methods is called an abstract class 2. Abstract methods. A method without specific implementation is modified by abstract eg: abstract class Shape { public int a; public void func(){ System.out.println("test"); } public abstract void draw(); } ·Abstract is ...

Posted by scarlson on Tue, 30 Nov 2021 03:35:07 -0800

Summary of class and object knowledge points in java

1. Object oriented (1) Object oriented understanding Object-oriented is based on object, which mainly emphasizes object. Face object is an idea to solve problems, which mainly depends on the interaction between objects to complete a thing (2) Object oriented features Object oriented is a common idea, which is more in line with people's t ...

Posted by rkeppert on Tue, 30 Nov 2021 02:39:32 -0800

Queue of data structure, detailed knowledge

catalog:What is a queue?What are the characteristics of queues?Queue noun descriptionDetailed explanation of queue typesQueue operationText:What is a queue?Queue is a special linear table, which is only allowed at the front of the table( front)Delete, but at the back end of the table( rear)Like the stack, a queue is a linear table with restrict ...

Posted by plaggypig on Mon, 29 Nov 2021 19:47:13 -0800

java multithreaded programming -- thread pool

reference resources: https://blog.csdn.net/qq_27581243/article/details/86650682 https://www.cnblogs.com/zincredible/p/10984459.html Thread is a heavyweight resource. The creation, startup and destruction of threads consume system resources. At the same time, it is limited by system resources. The relationship between the number of threads and ...

Posted by yumico23 on Mon, 29 Nov 2021 17:18:16 -0800