Network programming - UDP
1.UDP definition
UDP is also called user data protocol [connectionless protocol]
Advantages: the safety and reliability of data cannot be guaranteed
Disadvantages: low consumption and high efficiency
2. Classes and methods required by UDP based n ...
Posted by roopurt18 on Sat, 04 Dec 2021 12:14:56 -0800
Java learning -- file processing, generics and container classes
1, File processing
1. Create an object of File class
File Class creation function
Method name:
1.public boolean creatNewFile()(When the file with this name does not exist, create a new empty file named by this abstract pathname)
2.public boolean mkdir()(Create a folder named after this abstract pathname)
3.public boolean mkdirs()(Create ...
Posted by eflopez on Sat, 04 Dec 2021 10:15:22 -0800
Java Variable Type
In the Java language, all variables must be declared before they can be used. The basic format for declaring variables is as follows:
type identifier [ = value][, identifier [= value] ...] ;
Format description: Typee is a Java data type. identifier is the variable name. You can declare multiple variables of the same type separated by commas. ...
Posted by lill77 on Sat, 04 Dec 2021 10:08:46 -0800
Basic Summary of Scala
1. Basic concepts
Basic concepts
Class: The abstraction of objects of the same type, such as people, planets, cars, etc.Object: A specific instance of a class containing properties and methods such as a person, a planet, a vehicle, and so onAttributes: Used to describe certain characteristics of an object, such as a person's age, name, etc. ...
Posted by balacay on Sat, 04 Dec 2021 09:58:51 -0800
BrocastReceiver process details
Registration of broadcasts is divided into static registration and dynamic registration. Static registration configures the receiver node in the xml and parses the xml file after the application starts. The specific registration process is handled by the PackagerManagerService. This article focuses on the dynamic registration of broadcasts, i.e ...
Posted by harman on Sat, 04 Dec 2021 09:42:02 -0800
Summary of advanced use of scala
1. Matching pattern
Summary
Similar to switch...case in java, but much more powerful and flexible.The goal is to solve the matching and processing problems when a pattern (value is also one of the patterns) is met.Instructions
A pattern match consists of a series of alternatives, each starting with the keyword case. Each alternative cont ...
Posted by Dvector on Sat, 04 Dec 2021 09:38:05 -0800
Chapter IV Object-Oriented 2 (Notes)
Objects and References
Variable types in Java, except for the basic types, are referred to as reference types.
Basic types: byte, short, int, long, float, double, char, boolean; Reference type: Array, String, Custom class; Objects in Java operate on them by reference:
Example: Custom class Teacher(Teachers)
class Teacher{ ...
Posted by whitemoss on Sat, 04 Dec 2021 09:37:37 -0800
Custom Thread Pool
Introduction to Thread Pools
Java threads correspond to the threads of the system, and creating threads is expensive in system resources. Too many threads consume more system resources, and context switching of threads incurs system resource overhead. Thread pools can unify thread management, balance the direct relationship between threads ...
Posted by phpcode on Sat, 04 Dec 2021 09:18:22 -0800
JUC High Concurrency Programming Three
7. Callable interface
1. Multiple ways to create threads
Creation MethodRemarksIntegrate Thread ClassNo return valueImplement Runnable InterfaceNo return valueThrough the Callable interfaceCan have a return valueThrough thread pools
2. Differences between Callable and Runnable interfaces
DifferenceCallableRunnableIs there a return valueyesno ...
Posted by Vijay.Bansode on Sat, 04 Dec 2021 09:12:03 -0800
SSM framework integration ~ ~ ~ small example (spring+springmvc+mybatis)
1, Tool preparation
1.maven Version maven-3.8.2
2.tomcat Version tomcat-8.5.65
3. Database Version 8.0.24
4. The database source is c3p0 Version 0.9.5.2
2, Database construction statement
Note: the following sql statement ...
Posted by ganeshasri on Fri, 03 Dec 2021 23:15:13 -0800