Java Basics - exceptions

Exception Basic concepts In the Java language, abnormal conditions occurring in program execution are called "exceptions". (syntax and logic errors in the development process are not exceptions) Abnormal events during execution can be divided into two categories: Error: a serious problem that the Java virtual machine cannot solve. ...

Posted by yodasan000 on Mon, 07 Mar 2022 11:48:19 +0100

RabbitMQ -- persistence, release confirmation

It should have been updated yesterday, but when using the browser to access the web port of the server's RabbitMQ, chrome shows that it is not a private link and does not allow you to log in to the Edge. Baidu has found many problems and still can't solve them. The reason is that the server doesn't install SSL certificate and uses ip directly t ...

Posted by harmor on Mon, 07 Mar 2022 11:43:05 +0100

HashMap key source code analysis

1, Introduction to HashMap HashMap is one of our commonly used collection frameworks. The underlying implementation is array + linked list + red black tree. The elements are out of order, that is, the storage order is not necessarily in the order of addition. Synchronization is not supported, that is, the thread is unsafe. 2, Key parameters o ...

Posted by AlanG on Mon, 07 Mar 2022 11:40:38 +0100

Does C + + reference occupy memory space?

Through the disassembly code, see if you can see the address of a reference variable to know whether it occupies memory space. Test code: int main(){ int num = 6; int &r = num; int *p = # int x = r; int y = *p; return 0; } 1. X86-64 platform Obtain the disassembly code of the main function through GDB or ...

Posted by opencombatclan on Mon, 07 Mar 2022 11:28:13 +0100

Spring Cloud Eureka integrates Seata to realize distributed transactions

1, Introduction to Seata Seata is an open source distributed transaction solution, which is committed to providing high-performance and easy-to-use distributed transaction services. Seata will provide users with AT, TCC, SAGA and XA transaction modes to create a one-stop distributed solution for users. 2, Software version Software edition ...

Posted by DeepakJ on Mon, 07 Mar 2022 11:20:27 +0100

ucore_lab2 experimental report

After the experiment of lab1 is completed, start lab2, which mainly realizes memory allocation Purpose of the experiment: Understand the translation mechanism based on segment page memory addressUnderstand the establishment and use of page tableUnderstand how to manage physical memory In lab1, we use segment management, and the addresses inv ...

Posted by discobean on Mon, 07 Mar 2022 11:06:56 +0100

JimuReport building block report v1 Version 4.3 release, free visual low code report

Project introductionBuilding block report, a free Visual Web Report tool, online drag and drop design like building blocks! Functions include data report, print design, chart report, large screen design, etc!Adhering to the product concept of "simple, easy-to-use and professional", it greatly reduces the difficulty of report developme ...

Posted by vertmonkee on Mon, 07 Mar 2022 10:59:10 +0100

Pruning strategy of deep search

Feasible pruning Cut down unnecessary subtrees on the search tree through some judgment. Sometimes, we will find that the subtree state corresponding to a node is not the result we want, so we don't need to search this branch. Cutting off this subtree is pruning. Once the final solution of some states can not be found in any case, it can ...

Posted by Phasma Felis on Mon, 07 Mar 2022 10:52:25 +0100

Usage and difference of js call(), apply(), bind()

1. call() Syntax: fun.call(thisArg,arg1,arg2,...) fun: represents a functionIf the object "this" and "this" are to point to the global object, then "this" and "this" are to point to the global object;Starting from arg1, it is the parameter to be passed to fun. characteristic: fun.call(thisArg,arg1 ...

Posted by mariocesar on Mon, 07 Mar 2022 10:46:41 +0100

DP entry integer split!

343. Integer splittingLink to force button topic: https://leetcode-cn.com/problems/integer-breakGiven a positive integer n, split it into the sum of at least two positive integers and maximize the product of these integers. Returns the maximum product you can obtain.Example 1:Input: 2Output: 1Explanation: 2 = 1 + 1, 1 × 1 = 1. Example 2: ...

Posted by marvelade on Mon, 07 Mar 2022 10:42:05 +0100