In one of my previous articles, "someone asks you what the Java memory model is, send it to him." Article, introduced the Java memory model, through this article, everyone should know the Java memory model of the concept and role, in this article, in Java concurrent programming
* @param cfg Servlet configuration information
*/
public void init (servletconfig cfg)
throws Servletexception
{
Super.init (CFG);
}
/**
* * is unloaded.
*/
public void Destroy ()
{
Super.destroy ();
}
}
Note: Cookies are two-way communication between the server side and the client, so it involves security issues.
Session management Using the Java Servlet API
The Javax.servlet.http.HttpSession interface encapsulates
to
insert into 表(字段列表) values (对应的具体记录)
Add to
insert into 表 (对应的具体记录)
Delete
delete from 表名 where
Code Hosting(run result of statistics.sh script)Last week's summary of the wrong quiz
Interface
features
Set interface in the API collection
Duplicate elements are not allowed, elements in countless order
List
Allow repeating elements, elements in order
, the code is at least twice times more time to see the text, if you skip directly, then you will miss a lot of wonderful parts.3, Design Patterns in the book inside the flexible interspersed, I am really lucky I read this book before the design mode, otherwise the process of reading a lot of time will not understand what it said the design mode, and thus looked after, I also more understand the use of some design patterns.4, now the network developed, a lot of questions on the Internet have rea
20165312 2017-2018-2 "Java program Design" 7th Week study Summary of the last week to test the leakage of the vacancy
Overall, I think last week two tests are very difficult, do the test also took a long time, I think because the knowledge of the book a lot, I have not understood well, so still want to read more well, a lot of books on the knowledge points omitted or read once forgotten.
Week fiv
content can change, it is not the case. So, for the following statement:New StringBuffer ();You can modify the "content" of the object it points to, such as:Strconst.append ("helloWorld");But "cannot" modify its "value", for example:null;★ The issue of the transfer of parametersThe argument of the reference type (in function call) is a rather ridiculous question. Some books say it is a value, and some books
20172330 2017-2018-1 "Java Program design" Fourth week study summary textbook study summaryThis week's content is more and more complex, including chapters fourth and seventh.
The fourth chapter introduces the definition and concept of class structure, and gives us a lot of examples to show the method and application of the custom class, and discusses the structure and use of the method definition: Including return statement, parameter, local
)3.3 Count the amount of code completed this weekThe weekly code statistics need to be fused into a single table.
Week Time
Total code Amount
New Code Volume
total number of files
number of new files
2
625
625
99
99
3
1429
804
113
14
4
3354
1925
223
110
5
3751
397
241
18
6
4369
31]
80
-1
synchronized?
The JDK used for the test was 1.7, and the implementation of the lock introduced a number of optimizations, such as lock coarsening, lock elimination, lightweight locks (lightweight locking), and jdk1.6. Bias lock (biased locking), adaptive spin (adaptive spinning) and other techniques to reduce the cost of lock operations. And the principle of spin lock, similar to CAS spin, even more than CAS spin more optimization. For details, please refer to the JVM lock mechanism 1-synchron
Set: Exceptions3.1. Code Cloud codes Submission recordIn the Code cloud Project, select statistics-commits history-set time period, and then search for and3.2 PTA Problem set complete situation diagramTwo graphs are required (1. Ranking chart. 2.PTA Submission list diagram)3.3 Count the amount of code completed this weekThe weekly code statistics need to be fused into a single table.Option: 4. ExpandExtracurricular exercisesJavatutorial in questions and exercisesPractice SummaryExtracurricular
1: Summary of this week's study2: Using a database to retrofit your system 2.1: A brief description of how to use the database to transform your system. What table do you want to build? The design of your watch.Create a table for a libraryCreate a library information table for readers---assume that a person can borrow up to 3 books.2.2.: What are the key classes in JDBC used in the system? 2.3: Key code for database-related modules. Critical lines nee
dynamic arrays to store relevant information, but once the amount of data is huge, it is inconvenient to manipulate; You can use files (read-in and read-out) related information
3. Code cloud and PTA3.1 codes to submit records3.2PTA Problem Set Completion chart3.3 Count the amount of code completed this week
Weekly total
code volume
New Code volume
Total number
of
new files
First week
189
complete situation diagramTwo graphs are required (1. Ranking chart. 2.PTA Submission list diagram)3.3 count The amount of code completed this weekThe weekly code statistics need to be fused into a single table.
Week Time
Total code Amount
New Code Volume
total number of files
number of new files
1
0
0
0
0
2
0
0
0
0
3
313
313
9
9
4
64
object (property: Int id, String name,int age,double grade) to the file Student.data, read from the file display.1.1 Generated three student objects, using PrintWriter's Println method to write Student.txt, one student per line, and each student's attribute separated by |. Use scanner or BufferedReader to read the Student.txt data. (Key code, occurrence number)For:1.2 What is the size of the generated file (using the right-click File Properties view)? Analyze the file sizeFor:1.3 If the println
section of the system with the stream associated with the file? Why use these interfaces with classes?
Read with classes, classes, File FileReader BufferedReader classes, files created through file objects, and the other two classes with the read.
Write files are used to BufferedWriter , OutputStreamWriter , FileOutputStream .
2.3 Read and write file-related code. Key lines need to be annotated3. Code volume Statistics 3.1 Statistics The amount of code done this week selected:
-set time period", then search and3.2 PTA Problem Set completion diagram needs to have two pictures (1. Ranking chart. 2.PTA Submission list diagram)3.3 Statistics The amount of code completed this week requires that the weekly code statistics be fused into a single table.
weeks
Total code amount
new Code volume
Total Files
number of new files
2
0
0
0
0
3
235
235
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.