Java project: household income and expenditure accounting software

1. Project objectives • simulate the implementation of a text-based interface "home accounting software" • master preliminary programming and debugging skills • it mainly involves the following knowledge points:  definition of variables  use of basic data types  circular statement  branch statement  method dec ...

Posted by AdamBrill on Fri, 21 Jan 2022 19:38:02 +0100

Python - advanced functions

Advanced function (2) This is function advanced version 2.0, What will be introduced are the three concepts of iteratable object, iterator and generator and their usage, Only by understanding these three can we deepen our understanding of sequences. Iteratable object In the previous article, we talked about many iteratable objects, For e ...

Posted by tyrol_gangster on Fri, 21 Jan 2022 19:31:16 +0100

[Spring] several methods of dependency injection

In the last article, I focused on the concepts of control inversion and dependency injection in Spring. What are the ways of dependency injection? What are their advantages and disadvantages? I will explain them in detail in this chapter. Spring dependency injection can be divided into attribute injection and object injection according to obje ...

Posted by OU_Student on Fri, 21 Jan 2022 13:38:17 +0100

java foundation 3 (annotation and reflection mechanism)

1, Annotation 1. What is annotation? 1. Concept Annotations in java are mainly used to mark code or combine other methods, such as reflection, to realize the transmission of values. In addition, annotations are also used more in the framework. There are seven kinds of annotations in java, including @ override, @ deprecated, @ suppresswarnings ...

Posted by gofer on Fri, 21 Jan 2022 13:27:16 +0100

Do you know the five ways to read yml files?

Original: WeChat official account, welcome to share, reprint, please keep the source. In the previous article, we analyzed the whole process of SpringBoot parsing yml configuration files from the perspective of source code. Today, let's talk about the actual combat and summarize the ways to read the contents of yml configuration files in add ...

Posted by bundyxc on Fri, 21 Jan 2022 13:12:16 +0100

Reentrantlock. java concurrency Implementation principle of condition

In general, we often encounter a situation in the actual development process that we can continue only after meeting a condition. For example, when we use the production consumption model, the consumption service must have data consumption. If there is no data, wait. When the production thread generates data, wake up the consumption thread. The ...

Posted by CoffeeOD on Fri, 21 Jan 2022 12:32:55 +0100

Experiment 1 java basic programming (preview report)

Object oriented -- Java experiment report Experiment 1: Java basic programming Experiment 1 java basic programming (preview report) <center> <strong>full name:</strong> <u>XXX</u> &emsp;&emsp; <strong>Class:</strong> <u>XXXXX</u> &emsp;&emsp ...

Posted by addie on Fri, 21 Jan 2022 10:55:57 +0100

Do you really understand reflection?

1. What is reflection 1. First knowledge reflex When I first started to learn reflection, I was confused. This thing is really "abstract mother opens the door to abstract - abstract is home." Why do you need to get the Class object before creating an object? Isn't that unnecessary? Isn't it easier for me to new directly? What is ...

Posted by s2r on Fri, 21 Jan 2022 05:02:53 +0100

An online thread pool task accident

preface RejectedExecutionException exception thrown by thread pool submission task on line That is, the task submission performs the operation of reject policy. Check the business situation and thread pool configuration. It is found that the number of tasks executed in parallel is less than the maximum number of threads in the thread pool. Th ...

Posted by minc on Fri, 21 Jan 2022 04:13:10 +0100

Java winter vacation learning Day6: object oriented

1. What is object-oriented Programmers have transformed from process oriented executors to object-oriented commanders 1.1 ideas and steps of analyzing problems with object-oriented analysis method: ① select the real-world entity targeted by the problem according to the needs of the problem ② find the attributes and functions related to solv ...

Posted by sandbudd on Fri, 21 Jan 2022 02:59:41 +0100