Java basics IO flow
catalogue
1, IO stream
1. Classification of IO streams:
2. Byte input stream
Construction method of FileInputStream
3. Byte buffer stream
Encryption and decoding:
4. Character stream
Classification of character stream
Character output stream
Construction method of OutputStreamWriter
Method for OutputStreamWriter to write data
The di ...
Added by adroit on Sun, 20 Feb 2022 05:26:25 +0200
Java uses thread factory to monitor thread pool
ThreadFactory
Where do the threads in the thread pool come from? It's threadvector
public interface ThreadFactory {
Thread newThread(Runnable r);
}
There is an interface in Threadfactory. This method will be called when a thread needs to be created in the thread pool. You can also customize the thread factory
public class Threadfac ...
Added by DamianTV on Sun, 20 Feb 2022 05:20:09 +0200
Mit6.S081 experiment 11 networking
1, Experimental preparation
In this experiment, you will create a network interface card( network interface card)Write one xv6 Device driver.
Get this experiment xv6 Source code, and check out net Branch:
git fetch,git checkout net,make clean
2, networking
1. Background
Before writing code, you will find: revisit xv6 book "Chapter ...
Added by biffjo on Sun, 20 Feb 2022 04:53:15 +0200
Common code sharing of data structure and algorithm
Transferred from: Micro reading https://www.weidianyuedu.com
Data structure and algorithm are programmers' internal mental skills and basic skills. Whether in artificial intelligence or other computer science fields, mastering solid knowledge of data structure and algorithm will often help a lot! Today I recommend you a good data structure ...
Added by freakus_maximus on Sun, 20 Feb 2022 04:50:38 +0200
01_ Single case design mode
4. Creation mode
The main focus of creative mode is "how to create objects?", Its main feature is "separating the creation and use of objects".
This can reduce the coupling degree of the system, and users do not need to pay attention to the creation details of objects.
The creation mode is divided into:
Singleton modeFac ...
Added by jeff_borden on Sun, 20 Feb 2022 04:47:20 +0200
Basic introduction of Vue
1, Introduction
1,Vue. What is JS
Vue (pronunciation / vju) ː/, Similar to view) is a progressive framework for building user interfaces.
Vue's core library only focuses on view layers, which is not only easy to start, but also easy to integrate with third-party libraries or existing projects. On the other hand, when combined with modern to ...
Added by CJLeah on Sun, 20 Feb 2022 04:45:07 +0200
2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation)
2022Java learning notes 33 (object-oriented enhancement: inheritance, @ Override rewrite annotation)
1, What is inheritance 1. Inheritance is a relationship between classes 2. Multiple classes inherit a single class, and multiple classes can use the properties and behaviors of a single class 3. Multiple classes are called subclasses (derived c ...
Added by beachdaze on Sun, 20 Feb 2022 04:37:26 +0200
Common Linux commands and interview questions
Common Linux commands
1. File operations 📂
cd # Enter Directory
cd .. # Return to the previous directory
pwd # Show working paths
ls # View files in the current directory
ls -a # Hidden files can be displayed
ls -l # View file details
ls -la # View all file details
cat # View the entire contents of the file
vim # Edit file: [i] E ...
Added by Brian on Sun, 20 Feb 2022 04:29:58 +0200
C + + operation, please design a program to realize the management of book inventory (dynamic array class)
[problem description]
Please design a program to realize the management of book inventory. Please complete the design according to the given main function and program output. The specific requirements are as follows.
1, Please design a Book Class:
1. Include private members:
unsigned int m_ID;//number
string m_Name;//title
string m_Introd ...
Added by NovaHaCker on Sun, 20 Feb 2022 04:28:42 +0200
Java interview stereotyped Dictionary - Basic chapter
Basic chapter
Key points of basic part: algorithm, data structure and basic design mode
1. Binary search
requirement
Be able to describe the binary search algorithm in your own languageAble to write binary search codeBe able to answer some changed test methods
Algorithm description
Premise: there is A sorted array A (assuming it is ...
Added by gausie on Sun, 20 Feb 2022 04:24:31 +0200