On reference types in java -- strong, soft, weak and virtual
reference type
Definition: the data type represented by the actual value reference of the type (similar to the pointer in C). If you assign a reference type to a variable, the variable references (or "points") the original value. Do not create any copies. Reference types include class, interface, delegate, and boxed value types. ...
Posted by darshanpm on Tue, 26 Oct 2021 04:59:33 -0700
State retention, exception handling and request hook
catalogue
1, State retention
1. HTTP protocol
2. cookie status hold
Set cookie return
Save Cookies
Not saved
Saved
3. session state hold
You need to set the secret key before storing the session
4. Exception handling
Custom 500
Custom 404
5. Hook function
Before being accessed for the first time, the hook function
H ...
Posted by Biocide on Tue, 26 Oct 2021 04:29:58 -0700
SMTP protocol (Python Implementation)
SMTP introduction
I won't talk about too many basic concepts. Just turn to the book or Wikipedia, In short, SMTP is a simple mail transport protocol. Since it is a transport protocol, it is both sending and receiving mail It is different from POP3 and IMAP The difference can be seen simply from here
working process SMTP is an application lay ...
Posted by Catharsis on Tue, 26 Oct 2021 01:40:42 -0700
Niu Ke's Diary (October 26, 2021)
Title:
5
Basic Java Which of the following is the language function stored in java In the bag? ()
java.lang
java.io
java.net
java.util
Resolution:
java.lang Package contains
Packaging
String class
Math class —— Include function
Class class
Object class
java.util Provide tool classes including collection fr ...
Posted by dolce on Mon, 25 Oct 2021 23:05:23 -0700
First knowledge of C language 3
Due to the recent delay of professional courses and various things, I'm sorry for the late update, but it came today. Here is the last section of getting to know the C plate. The subsequent updates will be more specific and detailed 😋
1. Common keywords
auto break case char const continue default do double else enum ...
Posted by reli4nt on Mon, 25 Oct 2021 19:21:13 -0700
[the strongest in the whole network] python function
Welcome to the column [the strongest in the whole network] Python system learning manual
catalogue
1, Introduction to functions
2, Parameters of function
3, Local function (nesting of functions)
4, Advanced content of functions
5, Local functions and lambda
1, Introduction to functions
1. Conce ...
Posted by KingWylim on Mon, 25 Oct 2021 07:24:53 -0700
C language --- pointer written test questions
Question 1:
(& A) gets an array pointer such as int(*)[5]. Then + 1 skips the whole array and points to the position after 5.
*(a+1)=a[1]=2; * (ptr-1) = skip an element to point to 5
int main(){
int a[5] = { 1, 2, 3, 4, 5 };
int* ptr = (int*)(&a + 1);
printf("%d,%d", *(a + 1), *(ptr - 1));
Question 2:
1. Th ...
Posted by scheibyem on Mon, 25 Oct 2021 05:54:05 -0700
Advanced Python: Python's object-oriented attribute method
This time, we mainly introduce various properties defined in the class, such as class properties, instance properties, private properties of the class, and various methods, such as instance methods, class methods, static methods, and Property property method and other related knowledge.
🚀 Look at a piece of code
class Tool(object):
...
Posted by Straterra on Mon, 25 Oct 2021 00:47:52 -0700
JAVA inheritance and polymorphism
Inheritance is one of the most remarkable features of object-oriented. Inheritance is to derive a new class from an existing class. The new class can absorb the data properties and behaviors of the existing class and expand new capabilities
1, Concept of inheritance
That is, the subclass inherits the properties and behaviors of the parent c ...
Posted by sundru on Mon, 25 Oct 2021 00:32:19 -0700
Blocking queue in java
preface
In the field of multithreading, the so-called blocking will suspend the thread (i.e. blocking) in some cases. Once the conditions are met, the suspended thread will wake up automatically. Why do I need to block the queue? The advantage is that we don't need to care about when to block the thread and what to wake up the thread, be ...
Posted by AustinP on Sun, 24 Oct 2021 23:20:30 -0700