[JavaSE series] generics and wildcards in Java
⭐ ♪ previous words ⭐ ️
This article introduces you to Java syntax - generics and wildcards. Generics and wildcards are very abstract concepts. In short, both can pass types as "parameters". However, generics are used when you know what type to pass in, while wildcards are used when you are not sure what type to pass in, This articl ...
Posted by onekoolman on Mon, 28 Feb 2022 11:07:54 +0100
Multithreading tutorial immutable design
Multithreading tutorial (XXIX) immutable design
Common invisibility designs include time formats and string s
Take string as an example to illustrate the elements of immutable design
public final class String
implements java.io.Serializable, Comparable<String>, CharSequence {
/** The value is used for character storage. */
...
Posted by Brandon_R on Mon, 28 Feb 2022 07:32:32 +0100
Java Web from introduction to actual combat
Personal homepage: Hello Code. This column: Java Web from introduction to actual combat It is long and not finished, and the follow-up content will be continuously updated This article will also be published in sections for your convenience If you don't have Java foundation, please go first Java zero foundation guide Column learning correspondi ...
Posted by bookchiq on Mon, 28 Feb 2022 06:41:49 +0100
55 specific methods of Effective C + + to improve program and design
preface
Almost every class we write will have one or more constructors, a destructor and a copy assignment operator. It's hard to be particularly excited about these. After all, they are your basic tools for making a living, controlling basic operations, such as producing a new object and ensuring that it is initialized, getting rid of t ...
Posted by kaser on Mon, 28 Feb 2022 03:26:38 +0100
Advanced features of python -- slicing and iteration
preface
In Python, the more code is not the better, but the less the better. The code is not as complex as possible, but as simple as possible. Based on this idea, let's introduce the very useful advanced features in Python, the functions that can be realized by one line of code, and never write five lines of code. Keep in mind that the ...
Posted by richtux on Mon, 28 Feb 2022 02:54:53 +0100
C + + wide and narrow character conversion and output
Catalogue of series articles
1. Implement crawler with C + +!
preface
If you are a C/C + + programmer, you should be no stranger to VS. it can be said to be a sharp weapon in the hands of C/C + + programs
However, if you study deeply, you will find that most windows API s are divided into wide bytes and narrow bytes, such as the commo ...
Posted by phpcoding2 on Mon, 28 Feb 2022 02:26:01 +0100
[java learning path] (javaWeb [back end] Chapter) 002 Servlet
Chapter 1 Introduction to Servlet
1. Learning objectives
Understanding Web resources Understand the concept of Servlet Master the function of Servlet Master the XML configuration of Servlet Understand the annotation mode configuration of Servlet
2. Content explanation
2.1 concept of web resources
Web resources are resources running o ...
Posted by ProblemHelpPlease on Mon, 28 Feb 2022 01:35:14 +0100
Detailed explanation of c language memset
1 function declaration
void *memset(void *s, char ch, unsigned n);
1.1 functions
Set the contents of each byte in a block of memory pointed to by s to the ASCII value specified by ch. The size of the block is specified by the third parameter. It is used to fill a given value in a memory block. It is the fastest way to clear a large stru ...
Posted by dbrown on Sun, 27 Feb 2022 17:04:54 +0100
Advanced pointer (character pointer, pointer array, array pointer)
catalogue
1. Character pointer
1.1 method of use
1.2 testing
2. Pointer array
2.1 print string pointer array
2.2 printing integer pointer array
3. Array pointer
3.1 definition of array pointer
3.2 & array name VS array name
expand
3.3 use of array pointer
practice
Definition of pointer:
A pointer is a variable used to store a ...
Posted by richclever on Sun, 27 Feb 2022 16:45:21 +0100
Object class not ended
Object class is the base class of all classes in Java. It is the top of the whole class inheritance structure and the most abstract class.
Object contains 12 methods: registerNatives(), getClass(), hasCode(), equals(), clone(), toString(), notify(), notifyAll(), wait(long,int), wait(), finalize().
registerNatives()
getClass() ...
Posted by leeming on Sun, 27 Feb 2022 15:29:34 +0100