201621123057 Java Programming 13th Week of study summary

Source: Internet
Author: User

1. Summary of this week's study

Summarize multiple web-related content in the way you like (mind Mapping, OneNote, or others).

2. Add network functions to your system (shopping cart, library management, landlords, etc.)-group complete

To allow your system to be used by multiple users over the network, you need to add network functionality to your system.

2.1 What network functions do you want to add to your system? What is the design idea?

For:
The class was added to enable the ThreadedServer remote operation of the code and create a new inner ThreadedHandler class to implement the multi-threading, which implements the Runnable interface and the corresponding operation in its run method.

2.2 What information does the system pass through the network? What is the format of the information?

For:
The information is stored using InputStream, OutputStream, and then packaged with scanner, PrintWriter.

2.3 Does your network module use TCP or UDP technology? What are the common classes in a module?

For:
TCP technology is used;
Common classes are ServerSocket classes, classes Socket , Runnable classes, and Thread classes.

2.4 The source code of the network communication part, and carry on the simple explanation.

2.5 Choose to do: Is there a multi-threaded conflict or synchronization problem in the system? 3. Code cloud and PTA3.1 Statistics The amount of this week's work done

The 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 619 619 12 12
4 619 0 12 0
5 970 351 17 5
6 1118 148 25 8
7 1231 113 28 3
8 1707 476 33 5
9 1902 195 38 5
10 2316 414 43 5
11 2505 189 48 5
12 2885 380 54 6
13 3433 548 62 8
14 3581 148 64 2
Option: 4. Network Learning Guide (the following job content is selected) 1. Network Fundamentals

1.3 telnet cec.jmu.edu.cn 80, try to answer: what do you see from the screen? Is the content returned from the home page of cec.jmu.edu.cn? What will I return if I try to use the Get/index http/1.0 command? See the experimental Task Book topic 1.

2. Writing a TCP client program

2.1 Refer to Sockettest.java to write a simple connection to the remote server applet Client.java, you can receive and display the information sent by the server. The remote host IP and port number must first be specified on the console at startup.

201621123057 Java Programming 13th Week of study summary

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.