Java Network Functions and programming
Xu Yingxiao
(Shanghai university computing center 25 #)
Abstract: Java is the most popular programming language on the Internet.
Java's network functions are used to obtain images, sounds, and,
HTML documents and text files
This section describes how to dynamically obtain resources on the network. Text
Provides a large number of simple and easy-to-understand instances.
Keywords: Java; Internet; network
Java is a new programming language on the Internet.
This programming method has been introduced in many articles. However, Java enthusiasts prefer
This article describes Java's network functions and programming methods.
A preliminary introduction.
To facilitate first-time access to Java readers, this article first focuses on some common knowledge of Java programming.
For a brief introduction.
1. Introduction to Java programming
1. Programming environment:
For most readers, the following configuration is a more economical option:
Operating system Win95
Compiling software JDK1.01
Browser software Netscape2.0 or above (32-bit)
2. Programming method:
Use a text editor such as Edit and NotePad to input a Java program.
File name suffix.
Run the "Javac file name" command to compile the Java program. Generated after Compilation
A. class bytecode file.
Finally, if it is Java Applitcation, execute the command line: "Java
To run the Java program.
If it is a Java Applet, use the text editor input to call the Java Applet
File name suffix.
Run the following command:
"Appletviewer HTML file name" to run the Java Applet. Or use Netscape
Open the HTML document.
3. Program description in this article
In order to make the program reflect the programming method most concisely
The sequence is generally in the simplest form, with threads and other content omitted. Therefore, the program in this article does not
It is a "good" program, but it is easier for beginners to understand.
All programs in this article are compiled to generate bytecode files and corresponding HTML documents.
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