Java interview often ask knowledge, understand the sorting algorithm at one time, and summarize the commonly used sorting algorithms

realization public class SelectionSort { public int[] selectionSort(int[] A, int n) { //Record minimum subscript value int min=0; for(int i=0; i<A.length-1;i++){ min = i; //Find the minimum value after the beginning of subscript i for(int j=i+1;j<A.length;j++){ ...

Posted by mikew2 on Sat, 01 Jan 2022 18:42:32 +0100

Summary of C + + dots

Summary of C + + dots (I) explain The main reason why C + + is difficult to learn is that its standards and knowledge points are complex; For the previous C + + learning bias theory, this column will take every 20 small problems as an article, which mainly records the problems encountered in practice. The difficulty is different, which can be ...

Posted by klaibert26 on Sat, 01 Jan 2022 09:55:13 +0100

Implementing Redis distributed lock from zero to one coding

Some students are so pissing. You can understand it. If you don't do it yourself, how can you understand it thoroughly? Let's do it together! Usage scenario and model selection The distributed multi node deployment mode makes it possible for shared variables to be operated at the same time. In case of data consistency requirements, global loc ...

Posted by oeb on Sat, 01 Jan 2022 03:03:06 +0100

Carrying forward the Olympic spirit, we draw the five Olympic rings in line 49

Although the Olympic Games encountered many obstacles and was delayed due to the impact of the epidemic, the public opposition was postponed, and then there were xq cases after the rehearsal, and there were dark scenes in the alley. Let's ignore all these ~ As of the publication of this article, let's take a look at the war situation: Carry ...

Posted by sabbagh on Fri, 31 Dec 2021 23:15:34 +0100

Java foundation summary III (generics, interview java engineer)

public float refund(E item) { return 0; } } FruitShop fruitShop = new FruitShop<>(); // This shop sells apples FruitShop stringShop = new FruitShop<>(); // This fruit shop sells mobile phones??? Of course not logical Because of our store generics E If there is no restriction, it will lead to mistakes. Let's put restr ...

Posted by TalonFinsky on Fri, 31 Dec 2021 12:07:20 +0100

I wrote an IDEA open source plug-in, vo2dto one click to generate object transformation

Header explosion, po2vo, vo2do, do2dto, a bunch of object attributes, take them out and stuff them in. If it were not for the layered anti-corrosion under the DDD architecture, I really want to connect it. That's BeanUtils Copyproperties , in fact, there are not only this method but also 12 similar methods for object conversion, but overa ...

Posted by Vorotaev on Fri, 31 Dec 2021 07:08:01 +0100

Written interview for Java senior programmer, MySQL specification and performance optimization

**「reason:」** * Primary keys are usually added. Tables without primary keys have no soul * It is recommended to add the creation time and update time. Detailed audit and tracking records are useful. Ali's development manual also mentions this point, as shown in the figure ![](https://img-blog.csdnimg.cn/2020121620 ...

Posted by sriphp on Thu, 30 Dec 2021 23:34:46 +0100

[hematemesis finishing, what is JWT -- JSON WEB TOKEN

3,CSRF Because user identification is based on cookies, if cookies are intercepted, users will be vulnerable to cross site request forgery attacks. 5, Authentication mechanism based on token The token based authentication mechanism is similar to http protocol and is stateless. It does not need to retain the user's authentication informatio ...

Posted by rawky on Thu, 30 Dec 2021 15:26:29 +0100

AOP programming_ The conceptual basis of Android's elegant permission framework almost missed the Offer

Starting today, we will open up a new topic: professional skills of mobile architects in simple terms, with the goal of becoming an architect step by step, detailing the most direct use value of an architect's skills, horizontal peripheral knowledge and in-depth professional technology The most direct use value: I'm most afraid to see an arti ...

Posted by brailleschool on Thu, 30 Dec 2021 14:03:23 +0100

The seventh part of java basic syntax in the basic part of Java interview: abstract classes and interfaces are necessary for large factories

1. Abstract class rule of grammar Role of abstract classes 2. Interface rule of grammar Implement multiple interfaces Inheritance between interfaces Clonable interface and deep copy Shallow copy VS deep copy summary 1. Abstract class ======= rule of grammar There is no actual working method. We can design it as an abstract method ...

Posted by nmarisco on Thu, 30 Dec 2021 11:55:00 +0100