Interview shock 25: what's the difference between sleep and wait

Both the sleep method and the wait method are used to put the thread into the sleep state, and both the sleep method and the wait method can respond to the interrupt interrupt, that is, if the thread receives the interrupt signal during sleep, it can respond and throw the InterruptedException exception. What are the differences between sleep an ...

Added by sbinkerd1 on Wed, 23 Feb 2022 03:22:55 +0200

Spring MVC notes - super detailed

1, Introduction to spring MVC **Learn the pre knowledge of spring MVC: * * basic knowledge of Java Web, java,Srping, HTML,CSS,JavaScript and database 1. What is MVC MVC is an idea of software architecture, which divides software according to model, view and controller M: Model, the model layer, refers to the JavaBean in the project, whi ...

Added by a-scripts.com on Wed, 23 Feb 2022 02:26:51 +0200

Analyze the cause of BindingException: Invalid bound statement (not found) by tracing the source code

background The new project, the framework springboot + mybatis + mybatis plus, wants to add a CommonMapper and the corresponding mapper xml file to store general sql or sql across multiple tables. As a result, an error is reported when starting the test, as shown below: org.apache.ibatis.binding.BindingException: Invalid bound statement (not ...

Added by daftdog on Wed, 23 Feb 2022 02:21:18 +0200

Learn Java--day06 -- array from scratch

I Advanced application of array 1. Array inversion Meaning: exchange the elements in the array in order of index Prerequisites for reversal: 1. Confirm the index position of the element to be exchanged int start = 0; int end = arr.length - 1 2. The law of index position movement after each exchange start++ end– 3. How to exchange eleme ...

Added by disconne on Tue, 22 Feb 2022 19:53:12 +0200

Java basic syntax

03_Java basic syntax The Scanner class cannot get the char type directly from the keyboard Process control Process control statements are statements used to control the execution order of statements in the program. Statements can be combined into small logic modules that can complete certain functions.Its process control mode adopts three b ...

Added by yendor on Tue, 22 Feb 2022 18:11:16 +0200

Niu Ke net java basic knowledge brush question record-01

Assume Base b = new Derived(); What is the output result after calling and executing b.methodOne()? public class Base { public void methodOne() { System.out.print("A"); // 3. Output A methodTwo(); // 4. The method two method overridden by the subclass is called } public void methodTwo() { System.out.prin ...

Added by dyluck on Tue, 22 Feb 2022 18:10:18 +0200

Algorithm - stack and queue (Java implementation)

Stacks and queues and priority queues 1. Push in and pop-up sequence of stack Enter two integer sequences. The first sequence represents the push in order of the stack. Please judge whether the second sequence may be the pop-up order of the stack. Assume that all the numbers pushed into the stack are not equal. For example, sequence 1,2,3 ...

Added by KGodwin on Tue, 22 Feb 2022 17:30:41 +0200

Thread pool, volatile, atomicity, concurrency tool class

catalogue Thread state Thread pool - Fundamentals Thread pool - Executors default thread pool Thread pool - ThreadPoolExecutor Thread pool parameter - reject policy volatile  Atomicity Atomicity - AtomicInteger AtomicInteger - memory parsing AtomicInteger - source code analysis Pessimistic lock and optimistic lock Concurrency tool c ...

Added by cyanblue on Tue, 22 Feb 2022 17:08:25 +0200

[Java classes and objects]

class package com.yuzhenc.oop; /** * @author: yuzhenc * @date: 2022-02-22 20:29:28 * @desc: com.yuzhenc.oop * @version: 1.0 */ public class Person { //Property, also known as member variable, is placed outside the method in the class String name;//name int age;//Age double height;//height double weight;//weight / ...

Added by madan koshti on Tue, 22 Feb 2022 16:49:23 +0200

#Practical skills of Spring and SpringBoot development

Practical skills of Spring and SpringBoot development Links SpringBoot knowledge column: https://blog.csdn.net/qq_37248504/category_10924414.html Spring knowledge column: https://blog.csdn.net/qq_37248504/category_10924424.html Back end development knowledge column: https://blog.csdn.net/qq_37248504/category_9699519.html Get Applica ...

Added by dbemowsk on Tue, 22 Feb 2022 16:17:00 +0200