Java BASICS (23) GUI gui programming (Java basics), GUI gui

Source: Internet
Author: User

Java BASICS (23) GUI gui programming (Java basics), GUI gui

Here are some of the knowledge points and code I summarized in my previous class. Most of the notes I think are very good and classic, sincerely hope that these will help those who want to learn!

It is inconvenient to upload code by module. There are also many things, and they are also clear! If you need it, you can leave your email in the comments. I will certainly send it to you for free! Thank you for making progress on this platform !! Remember that programmers are selfless !!!

Also very welcome to my blog to watch blog address: http://www.cnblogs.com/duscl/

 

 

/* 1: Network Programming (understanding) (1) network programming: information transmission and resource sharing between computers using Java language (2) Network Programming Model (3) three elements of network programming A: IP address a: Point-to-decimal B: IP address composition c: IP address classification d: doscommand e: InetAddress B: port is the Application ID. Value Range: 0-65535. We recommend that you do not use 0-1024. C: Protocol UDP: data packaging, restriction, no connection, high efficiency, unreliable TCP: establish A data channel, unlimited, low efficiency, reliable (3) Socket mechanism: both ends of the communication should have Socket object B: All communication is performed through the IO between the sockets (4) send and receive data through UDP protocol (master your own code) Send: create a Socket object on the UDP sending end to create data and package the data to send data release resource receiving: Create a Socket object on the UDP receiving end to create a data packet to receive data and parse the data packet to release the resource (5) send and receive data over TCP protocol (master your own code) Send: Create a Socket object of the TCP client to get the output stream, write data to release the resource to receive: create A Socket object on the TCP server to listen to the client connection to obtain the input stream, read data to release resources (6) Case: a: udp a: the most basic UDP protocol to send and receive data B: improve the sending data into the keyboard and input c: a simple chat applet and improve it with multiple threads B: TCP a: the most basic TCP protocol for sending and receiving data B: The Server gives feedback c: client keyboard entry server console Output d: client keyboard entry server write to text file e: client read text file server console Output f: client read text file server write to text file g: Upload image h: multi-threaded File Upload Improvement 1: Reflection (comprehension) (1) class loading and Class Loader (2) Reflection: using the bytecode file object, you can use member variables and constructor methods, member method (3) reflection use A: Get constructor through reflection and use B: Get member variables through reflection and use C: Get member methods through reflection and use (4) reflection case A: run the configuration file through reflection B: Pass the reflection over the generic check C: assign A value to any attribute of any object through reflection (5) dynamic proxy 2: design mode (1) Decoration Design Mode BufferedReader br = new BufferedReader (new InputStreamReader (System. in); then SC = new then (System. in); (2) template design mode 3: New JDK features (1) JDK5 (master) packing and unboxing generic enhancement for static import Variable Parameter Enumeration (2) JDK6 (understanding) (3) JDK7 (comprehension) binary representation use _ to separate data switch statements, but use string generic inference (diamond generic) Multi-catch to use automatic resource release usage (4) JDK8 (learn) can go online to learn more *\

 

Related Article

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.