Object oriented foundation of java
Object oriented overview
First, what is object-oriented?
Object oriented is relative to process oriented. It refers to organizing relevant data and methods into a whole, and modeling the system from a higher level, so as to be closer to the natural operation mode of things.
Transformation from process oriented to object-oriented t ...
Added by mister_t101 on Thu, 24 Feb 2022 02:36:03 +0200
Mybatis Learn Notes
Mybatis Learn Notes
I. Understanding Mybatis
MyBatis is an excellent persistence framework. It supports custom SQL, stored procedures, and advanced mappings. MyBatis eliminates almost all JDBC code and setting parameters and getting result sets. MyBatis can configure and map raw types, interfaces, and Java POJO s (Plain Old Java Objects, ...
Added by Chrisww on Wed, 23 Feb 2022 19:19:45 +0200
[java advanced] 1: multi-threading
Catalog
01. Basic concepts: program, process, thread
1.1 Processes and Threads
02 Thread Creation and Use
2.1 Thread class
Two ways to create threads in the 2.2 API
2.2.1 Mode 1 inherits the Thread class
2.2.2 Exercise
Common methods in the 2.2.3 Thread class
2.2.4 Thread Scheduling
2.2.5 Implementing Runnable Interface
2.2. ...
Added by Kudose on Wed, 23 Feb 2022 19:04:10 +0200
Java --- object and polymorphism
JAVA objects and polymorphism (object-oriented)
Object oriented Foundation
A class is equivalent to a template, and an object is an entity created according to the template. A class is an abstract data type, not a real concrete existence. Class properties: member variables and member methods. You can call member methods to make the class perf ...
Added by parse-error on Wed, 23 Feb 2022 18:25:33 +0200
Introduction to spring MVC framework 60-72: interceptors
Start time: February 22, 2022 Node: MVC curriculum
Interceptor
Interceptor: 1) Interceptor is a kind of spring MVC, which needs to implement the HandlerInterceptor interface. 2) Interceptors are similar to filters, with different functional directions and emphases. Filters are used to filter request parameters and set coded character sets. Th ...
Added by php_guy on Wed, 23 Feb 2022 18:11:13 +0200
Java Date class Date
catalogue
Constructor:
Common methods:
Format date using DateFormat
Format dates using SimpleDateFormat
Mutual conversion of date and date format string:
Calendar Class
Calendar and Date are tool classes that represent dates. They can be converted to each other.
Common methods provided by Calendar Class:
Constructor:
Date (int year ...
Added by prcollin on Wed, 23 Feb 2022 17:37:16 +0200
Object oriented foundation of Java
Object oriented programming, as the name suggests, you have to have an object first; With the object, you can interact with the object; It is a programming method that maps the real world to the computer model by means of objects.
catalogue
1, Method 2, Construction method 3, Method overloading 4, Inherit 5, Polymorp ...
Added by JeanieTallis on Wed, 23 Feb 2022 16:49:56 +0200
[springboot annotation container] @ Bean
@Bean The @ Configuration annotation mentioned earlier is equivalent to turning a class into spring Configuration xml, how to inject beans with Configuration files? This requires the annotation @ Bean, which is used for methods. Adding @ Bean to a method is equivalent to adding a < Bean > tag to xml.
Let's take a look at an example first ...
Added by gutogouveia on Wed, 23 Feb 2022 16:50:50 +0200
Java development Snake games
@[TOP](Greedy Snake)
Java development Snake games
1, Development ideas
Set a certain size and immutable game window Draw the basic panel style of the game on the created window Draw a static snake using the saved material icon in advance Enable the snake to move; In fact, only the snake head coordinates need to move, and each body sectio ...
Added by sastro on Wed, 23 Feb 2022 16:27:09 +0200
JAVA learning DAY3 - instance operation
Methods of finding prime numbers
First of all, understand what prime numbers are: numbers that cannot be divided by whole except 1 and itself! After understanding this point, we have ideas. FOR example, FOR a number 101, do I want to compare it with 2 until 100 to see whether the result of its division is 0, IF(101%i == 0), then we will di ...
Added by stormszero on Wed, 23 Feb 2022 16:06:58 +0200