OMG! Summary of common Java classes

import java.util.ArrayList; public class Test { public static void main(String[] args) { Object obj1 = new Object(); Object obj2 = new Object(); System.out.println(obj1.hashCode()); // 460141958 System.out.println(obj2.hashCode()); // 1163157884 String str = new String(); Sy ...

Added by beeman000 on Wed, 29 Dec 2021 06:31:20 +0200

Principle of data binding for Android

During the inflate layout, the Activity generates the Binding through DataBindingUtil. From the code point of View, it traverses the contentView to get the View array object, and then generates the corresponding Binding class through the data Binding library, including Views, variables, listeners, etc. The generated classes are located in build ...

Added by bubblocity on Wed, 29 Dec 2021 06:03:21 +0200

SpringBoot technology practice - SpringRetry retry framework to check deficiencies and fill gaps

} } 1. stay controller Medium injection RetryTemplate It can also be used in service in @RestController public class SpringRetryController { @Resource private RetryTemplate retryTemplate; private static int count = 0; @RequestMapping("/retry") public Object retry() { try { count = 0; retryTemplate.exec ...

Added by jokerfool on Wed, 29 Dec 2021 02:59:34 +0200

Hystrix service fault tolerance processing: what is hystrix, Java Architect video

1, Simple use of Hystrix Create an empty Maven project and add the dependency of Hystrix in the project, as shown in the following code: <dependency> <groupId>com.netflix.hystrix</groupId> <artifactId>hystrix-core</artifactId> <version>1.5.13</version> </dependency> Write the first Hystr ...

Added by Ryyo on Tue, 28 Dec 2021 22:37:51 +0200

Front end interview questions in late summer and early autumn of 2021

A front-end Xiaobai's first interview journey in late summer and early autumn A lucky cat's broken thoughts after eating The following are the questions in the interview process. They are classic and popular. I hope they can provide you with some review direction. Gold, silver and four are just ready now. CSS article It is necessary to ...

Added by rich_d on Tue, 28 Dec 2021 22:09:49 +0200

Java reflex in simple terms, harvesting Kwai, bytes, Baidu, Offer tour of the US group

If you want to show the operation, you must first obtain the Class object, because the Class object represents various types. With it, you can get all kinds of Class information. The acquisition method is as follows: 1) Through object getClass() public static void main(String[] args) { Car car = new Car(); ...

Added by creatives on Tue, 28 Dec 2021 21:12:37 +0200

Java entry if branch switch branch structure, and technical interview with Kwai Tai

Example 3: if Zhang San scores more than 90 points in the Java test, the teacher will reward him with a mobile phone, otherwise the teacher will punish him for squatting. if(javaFraction>90) { System.out.println("The teacher rewarded a mobile phone"); }else{ System.out.println("Punishment squat horse step"); } The flow chart is a ...

Added by Oaquasis on Tue, 28 Dec 2021 18:14:18 +0200

Summary of classical algorithms

Binary search algorithm You can use loops or recursion Divide and conquer algorithm Divide a complex problem into two or more identical or similar subproblems, and then divide the subproblem into smaller subproblems... Until the last subproblem can be simply solved directly, and the solution of the original problem is the combination of the ...

Added by MatrixDancer on Tue, 28 Dec 2021 12:59:18 +0200

Java microservice architecture practice, MySQL8

The algorithm implementation of hashjoin itself is not complex. To say that it is very complex, it may be that when the optimizer selects the execution plan, whether to select hashjoin and appearance, and the internal table may be more complex. Anyway, with hashjoin now, the optimizer has another choice when choosing the join algorithm. MySQL i ...

Added by Masterchief07 on Tue, 28 Dec 2021 03:07:24 +0200

Byte Java senior engineer interview, falling in love with data structures Season 1

The maximum degree of each node is 2 (up to 2 subtrees) The left subtree and the right subtree are ordered, and the binary tree is an ordered tree Even if a node has only one subtree, it is necessary to distinguish between the left and right subtrees Properties of binary tree The i-th layer of non empty binary tree has at most 2i &m ...

Added by darkke on Tue, 28 Dec 2021 00:58:37 +0200