Network operation

Network operation Network support in Java: InetAddress: used to represent hardware resources on the network, i.e. IP address;URL: uniform resource locator;Sockets: use TCP protocol to realize network communication;Datagram: use UDP protocol to realize network communication. InetAddress There is no public constructor. You can only create inst ...

Posted by richrock on Thu, 24 Feb 2022 12:22:34 +0100

Kotlin studies Chapter 1

array Part I summary review Previous link address: Kotlin studies Chapter 1 (1) Knowledge learned in the previous article: Basic data type: includes numeric type and string typeValue types: Byte, Int, Long, Float, Double. There is no packing type. Pay attention to the mark of Long type, which must be capitalized with "L"String type ...

Posted by mcirl2 on Thu, 24 Feb 2022 11:06:13 +0100

Java --- object and polymorphism

Three characteristics of object-oriented: encapsulation, inheritance and polymorphism encapsulation In order to ensure the security of variables, we use encapsulation, do not care about the specific implementation details, but only access the members of the class through external excuses. public class Student { private String name; p ...

Posted by brain on Thu, 24 Feb 2022 10:47:15 +0100

Java design pattern adapter pattern (with code examples) learn design patterns once a day

Structural patterns can describe two different things - classes and instances of classes (i.e. objects). 1. Adapter Pattern: convert the interface of a class into another interface desired by the customer. The Adapter Pattern allows those classes with incompatible interfaces to work together. The adapter contains the following three roles. ( ...

Posted by fernandodonster on Thu, 24 Feb 2022 10:11:26 +0100

Some knowledge points about containers and some codes

generic paradigm 1. Introduction to generics: 1.1 basic concepts of generics: 1.2 benefits of generics: Better code readability (no coercion); Program more secure 1.3 erasure type: Type parameters written in generics during encoding will be removed by the compiler during compilation, which is called "type erasure" 2. Use of g ...

Posted by titeroy on Thu, 24 Feb 2022 10:09:23 +0100

Android startup process

Android startup process Android system startup process 1. Start the power supply to start the system: When the power key is pressed, the boot chip code is executed from a predefined place (solidified in ROM). Load the BootLoader into RAM and execute. 2. BootLoader: BootLoader is a small program before the Android operating system starts ru ...

Posted by Desdinova on Thu, 24 Feb 2022 09:29:14 +0100

EventLoop and EventLoopGroup of Netty source code analysis

The previous articles have analyzed the server startup and client connection of Netty in detail, so that you should have a more comprehensive and macro understanding of Netty. In the following article, I will analyze the source code of each main component of Netty. Personally, I think that the order from macro to detail, from surface to point, ...

Posted by bestpricehost on Thu, 24 Feb 2022 08:39:04 +0100

In this way, the new requirements can be iterated and put on the line safely

Author: Pan Shengwei (Shimian) outline Full link grayscale is one of the core functions of microservices, and it has always been a function that cloud customers must have in the process of microservicing. Full link grayscale involves many technologies and scenarios. If cloud enterprises implement them one by one, they need to spend a lot of m ...

Posted by netdynamix on Thu, 24 Feb 2022 08:25:56 +0100

Day11 Map interface, underlying implementation principle of HashMap and LinkedHashMap, common methods of Map, TreeMap, Hashtable, Properties, Collections and Enumeration

1.Map interface    Map And Collection Exist side by side. Used to save files with Mapping relationship Data :key-value  Map Medium key and value Can be data of any reference type  Map Medium key use Set To store, Duplicate is not allowed , i.e. the same Map The class corresponding to the ob ...

Posted by jstarkweather on Thu, 24 Feb 2022 08:16:20 +0100

Vue monitors object attributes to achieve linkage effect

Business background There is such a requirement in the project. A form stores supplier information. At the same time, it is necessary to select different suppliers to bring out the basic information and company qualification documents of the corresponding suppliers. Similar to a cascade operation, the supplier information is dynamically displa ...

Posted by danieloberg on Thu, 24 Feb 2022 08:04:40 +0100