encapsulation
Characteristics of encapsulation: data can only be accessed through specified methods.Hide the instance details of the class to facilitate modification and implementation.Specific practical steps of packaging
Modify the visibility of attributes to restrict access to attributes, which is generally set to private.Create a pa ...
1, Ask questions with Lombok
1.1 INTRODUCTION
1. Open settings (shortcut key: ctrl+alt+s) in idea, search plugin, search lombok in plugins, and install
2. Introduce lombok dependencies into the project
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version> ...
Posted by jf3000 on Tue, 09 Aug 2022 11:59:23 +0300
1, What is exception handling Exception handling is also called exception handling. There are two purposes to deal with exceptions in the program, one is to find the exceptions in the program, and the other is to operate the exceptions relatively or notify the programmer to modify them. Using the try catch statement can accomplish these two pur ...
Posted by bothwell on Sat, 06 Aug 2022 21:26:11 +0300
✅🎡 Personal homepage: Program ape chase
✅🎡 Series column: Algorithm set
✅🎡 Current status: create Java learning road (zero foundation to employment practice) series, which is currently updated to JAVAWEB development
✅🎡 About the author: Hello, everyone. I'm a program ape chaser, a new star creator in the whole stack field, an ...
Posted by grandman on Wed, 03 Aug 2022 22:19:23 +0300
Vue
1, Introduction
Vue.js (read /vju ː/, Similar to view), it is a set of progressive framework for building "user interface". Vue only focuses on layers and adopts the design of bottom-up incremental development. Vue is a view component that implements data binding and composition of responses through the simplest possible A ...
Posted by MikeL on Wed, 03 Aug 2022 22:14:25 +0300
1, What is Seletor?
The literal meaning of selector is not easy to understand. Seletor is a listener that can listen to events in the Channel. Channels can be registered in the seletor. When these registered channels have events, the seletor's select method will return these events to the thread for processing.
2, The difference bet ...
File operation and IO flow
File class
summary
java. io. The file class is an abstract representation of the path names of files and directories. It is mainly used to create, find, and delete files and directories
Construction method
File(File parent, String child) Create a new File instance based on the parent abstract pathname and the chi ...
Posted by Asday on Mon, 01 Aug 2022 21:51:31 +0300
What is object-oriented?
Process oriented
The process oriented method of solving problems is to follow the steps we have analyzed, step by step, follow the principle of top-down and gradual refinement, and focus on the process and steps of solving problems.
object-oriented
Java Language is an object-oriented programming language, and obj ...
Posted by the_ut_tick on Sat, 30 Jul 2022 22:17:10 +0300
Write, append, read and copy operations of golang files
There is an OpenFile function under the os package of the Go language. Its prototype is as follows:
func OpenFile(name string, flag int, perm FileMode) (file *File, err error)
Where name is the file name of the file. If you are not running under the current path, you need to add the spe ...
Posted by teddmcload on Thu, 30 Jun 2022 16:56:27 +0300
I. core principle flow chart
II. The client monitors the server
2.1 implement udp listening
The constructor of PushReceiver will trigger the initialization of listener
public PushReceiver(HostReactor hostReactor) {
try {
this.hostReactor = hostReactor;
this.udpSocket = new DatagramSocket();
thi ...
Posted by spitfire_esquive on Thu, 30 Jun 2022 16:41:17 +0300