20165329 Java programming Nineth Week of study summary

Source: Internet
Author: User
20165329 "Java program design" Nineth Week study summary textbook Learning content summary 12th Chapter URL Class
  • Construction Method 1

    try {  URL url = new URL("http://www.google.com");}catch(MalformedURLException e) {   System.out.println("Bad URL:"+url);}
  • Construction Method 2: public URL(String protocol,String host,String file) throws MalformedURLException InetAddress get address with class
  • Gets the host address on the inetaddress, using the static method Getbyname (String s)
  • Get the local machine address, using the static method Getlocalhost ()
  • Sockets
  • ServerSocket object and server-side sockets
  • Using multithreaded Technology

  • Data Report

    通过网络传输的数据的基本单元,包含一个报头(header)和数据本身,其中报头描述了数据的目的地以及和其它数据之间的关系。
  • Java Remote Call

[Code Hosting]

(run result of statistics.sh script)

20165329 Java programming Nineth 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.