Java object-oriented encapsulation and inheritance, Java interview script

Both process oriented and object-oriented are a way of thinking in programming. Process oriented programming is the process of thinking about "what should I do" and realizing it step by step. For example, when cleaning the company (cleaning the glass, sweeping the floor, mopping the floor, taking out the garbage, etc.), according to ...

Added by samyl on Sun, 26 Dec 2021 03:31:41 +0200

Install raspberry pie 4B for Ubuntu mate20.0 04

Equipment to be prepared:   Raspberry pie 4B (here I choose the 8G memory version) Keyboard and mouse (there must be a keyboard, and the mouse can be used after Ubuntu Mate is installed) Monitor (HDMI screen is recommended here, I use https://www.waveshare.net/wiki/7inch_HDMI_LCD_(C) (screen below) 16G/32G SD card (32G is recommended because ...

Added by JohnnyBlaze on Sat, 25 Dec 2021 21:33:21 +0200

Spring Boot annotation principle, automatic assembly principle, illustrated

First, let's look at the main configuration class of SpringBoot: @SpringBootApplication public class StartEurekaApplication {     public static void main(String[] args)     {         SpringApplication.run(StartEurekaApplication.class, args);     } } Click @ SpringBootApplication to see that @ SpringBootApplication is a composite annotation. ...

Added by WendyLady on Sat, 25 Dec 2021 06:00:10 +0200

Hard currency for Android programmers, baidu Java interview questions

At the same time, it should be noted that we use testImplementation, which means that we can only use this framework in Java unit testing, which has no impact on our dependencies in Android. The Android project using gradle in AS will automatically create Java unit tests and Android unit tests. The test code is in test and Android test resp ...

Added by gordo2dope on Sat, 25 Dec 2021 02:24:34 +0200

Is your login interface really secure?

preface When you learn to write a program, the first line of code is hello world. But when you start learning WEB background technology, The first function of many people is to write login (whispering: I don't know others, but I am anyway). But when I interviewed or communicated with many students with short work experience, I found that altho ...

Added by Jenk on Fri, 24 Dec 2021 23:11:55 +0200

Take commodity oversold as an example to explain Redis distributed lock and the latest version of Java interview dictionary

First, a simple Lua script code is written to obtain the value value corresponding to the lock, check whether it is equal to requestId, and delete the lock (unlock) if it is equal;Then, pass the Lua code to jedis eval() method, and assign the parameter KEYS[1] to lockKey and ARGV[1] to requestId. The eval () method is to hand over the Lua code ...

Added by dharprog on Fri, 24 Dec 2021 21:17:16 +0200

[required for development, interview question for Huawei Java senior engineer

If there is such a demand: In the first version of our application, there was no authorization function. The current requirement is to add an authorization function. In the above example, before we operate the order information (whether querying or modifying), we add a function to check whether the user is admin. One way to do this is to cre ...

Added by TitanKing on Fri, 24 Dec 2021 20:31:13 +0200

[Java from 0 to architect, java development must be skilled in technology

public class ConnectionFactory { public static Connection getConn2() throws Exception { Class.forName("com.mysql.jdbc.Driver"); return DriverManager.getConnection("x", "x", "x"); } } [](https://codechina.csdn.net/m0_60958482/java-p7)FactroyBean ------------------------------------------------------------- ...

Added by kaeserea on Thu, 23 Dec 2021 18:27:54 +0200

An article to understand the Android Framework

This paper aims to describe the Framework of the Framework, mainly to record my learning about android framework for a period of time, hoping to attract jade and help readers.prefaceWrite before: 1. Is it necessary to learn linux kernel? I think it is necessary. Learning linux kernel helps us to deepen our understanding of some concepts, such ...

Added by bashaash on Wed, 22 Dec 2021 13:36:46 +0200

Still traversing the search collection? Java 8 can be solved in one line of code. It's really simple

background Yes, if you want to search the List collection, you can use your own contains/ indexOf method to find elements before Java 8, but only complete elements, not fuzzy search or user-defined search. At this time, you can only traverse. But now it's 2021. Are you still searching for List collection elements in the traditional way of tra ...

Added by WebGeek182 on Wed, 22 Dec 2021 11:41:37 +0200