C language series - Section 2 - branch and loop statements
1. Branch statement if switch 2. Circular statement while for do while 3.goto statement
What is a statement?
C statements can be divided into the following five categories:
Expression statementFunction call statementControl statement (introduced in this chapter)Compound statementEmpty statement
Control statements are used to con ...
Posted by vbcoach on Sat, 12 Feb 2022 13:42:41 +0100
Java - Comparison of Java objects
Comparison of java objects Objectives of this section
Raising questionsComparison of elementsComparison of objects in JavaComparison method of PriorityQueue in collection frameworkSimulate the implementation of PriorityQueue
1. Questions raised
Last class, we talked about priority queue. When inserting elements into priority queue, there is ...
Posted by anon_amos on Sat, 12 Feb 2022 12:57:36 +0100
Spring mybatis core knowledge
Write in front
This is the core knowledge of spring mybatis, which can be used to review the eight part essay and deepen knowledge. It is recommended that you read it in the mode of breaking through the customs, and then check and fill the gaps according to the content. You are welcome to ask questions and learn from each other.
It was done b ...
Posted by Kazlaaz on Sat, 12 Feb 2022 10:40:21 +0100
Object oriented programming in Java se
catalogue
1, Abstract class
1. Concept
2. Grammar rules
3. Some precautions
4. Role of abstract classes
2, Interface
1. Elaboration
2. Grammar rules
3. Some writing standards
4. Implement multiple interfaces
5. Inheritance between interfaces
6. Interface usage examples
7.Clonable interface and deep copy
8. Differences between inte ...
Posted by kranthi117 on Sat, 12 Feb 2022 10:33:47 +0100
API Foundation Day 3
Object class
Object is the top-level superclass of all classes. There are two methods that are often overridden by subclasses:
toString() and equals()
package object;
/**
* Object Is the top superclass of all classes There are several methods that are often overridden by subclasses, including toString and equals
*/
public class Demo {
...
Posted by zenag on Sat, 12 Feb 2022 08:41:24 +0100
Spring learning notes [XV] annotation programming
Annotation programming
01 what is annotation programming
:::info It refers to adding specific annotations to classes or methods to complete the development of specific functionsThe use of annotations is convenient for development, the code is concise, and the development speed is greatly provided :::
02 role of annotations
:::success ...
Posted by stan801003 on Sat, 12 Feb 2022 08:38:17 +0100
Chapter VII collection
generic paradigm
Why use generics:
Early Object types can accept any Object type, but in practical use, there will be the problem of type conversion. This hidden danger exists, so Java provides generics to solve this security problem
What is generics:
● generic, i.e. "parameterized type". When referring to parameters, the most fam ...
Posted by rubadub on Sat, 12 Feb 2022 08:13:16 +0100
Analysis and appreciation of classes and objects in C + + (Part I)
1, Process oriented and object oriented
Before learning classes, let's review some connections and differences between C language and C + +: C language is process oriented, focusing on the process, analyzing the steps of solving the problem, and gradually solving the problem through function call. At the code level, it embodies functions. ...
Posted by lives4him06 on Sat, 12 Feb 2022 07:10:20 +0100
Java inheritance & & modifier
1. Succession
1.1 implementation of inheritance
1. Concept of succession
Inheritance is one of the three characteristics of object-oriented. It can make subclasses have the properties and methods of the parent class, redefine them in subclasses, and add properties and methods
2. Format of implementing inheritance
Inheritance is impleme ...
Posted by pfoger on Sat, 12 Feb 2022 06:42:52 +0100
Java basics collection
catalogue
1, Overview of collections:
1. Differences between sets and arrays:
2. Features of the collection:
2, Collection interface:
1. Various functions in Collection:
2, Traversal of collection:
1. Use the acquisition function to realize traversal:
3, List interface (inherited from Collection interface)
1. Features of List interface ...
Posted by rel on Sat, 12 Feb 2022 05:59:44 +0100