Recently in the Bi Xiangdong Teacher's Java basic video IO part of the knowledge of the explanation. Because IO this piece of knowledge is very important, and small knowledge dot many, method also more, tonight make a simple summary for later review.
The Linux command obtains the input from the standard input device (stdio) By default, outputting the result to the standard output device (STDOUT) display. In general, the standard input device is the keyboard. The standard output device is the
ext.: http://blog.csdn.net/joephoenix/articles/2283165.aspxThe IO stream of Java is divided into two kinds of streamsbyte stream InputStream OutputStreamCharacter Stream Reader WriterThey're all abstract classes.Specific implementationbyte stream
IO stream (input stream, output stream)
Byte stream, character stream
1. byte stream:
InputStream, OutputStream
InputStream abstracts the way the application reads data;
OutputStream abstracts the way the
1. ExceptionsIn Java, each exception is an instance of a class named Throwable.The try-catch-finally statement we used
Try
Try to execute the contents of the Try statement block, catch it if there is an exception, and execute the code
Classification of streams1, according to the flow of flows into the input stream, output stream 2 kinds.Input stream: Can only be read from, cannot write data to it;Output stream: You can write to it only, and you cannot read the data from it.Java
First, stream concept (stream)The file class does not read and write the contents of the files.Reading a file means: Reading the data in the file into memoryWriting a file means: Write the data in memory into a file.What do you read and write files
1. Comparison of the technical principles of the Java Serialization tool
Binary Formats & language-specific OnesJavabuiltin(Java native), javamanual (manually written according to member variable type),fstserliazation,kryo
Binary
Encoding and decoding first, it is clear that the information stored in the computer is binary encoding/decoding is essentially a mapping (Correspondence Relationship), such as ' A ' ASCII encoding is 65, the computer is stored in 00110101, but the
Summary of common scenarios and processing methods for. Net Memory Overflow (system.outofmemoryexception)Under what circumstances will the outofmemonryexception appear? We can catch the exception when we try to create a new object, and the garbage
Http://bbs.51js.com/thread-65160-1-1.html
Enter JSSP script content:
var begintime=new Date ();
for (Var i=0;ivar color=i%2? " #eeeeee ":" #aaaaaa ";
%>
Window.alert ("Time Consuming:" + (New Date ()-begintime) + "MS");
%>
Path and command search orderBash Pit WelcomeBash Environment configuration fileTerminal settingswildcard characters and special symbolsThe TTY1~TTY6 command interface reads some key settings for the local computerUse Stty to view key contents[Email
The identifier of the thread is the thread ID, the ID type of the thread is Std::thread::id, and can be obtained in two ways. The first is the thread object, which can be associated with threads, that calls object.get_id (), or if object does not
There are three types of IO streams in Java:① input stream, output stream: The input and output stream is referenced by a Java program. ② byte stream: bytes are storage units, accounting for 8 bits, and other basic data types are measured in bytes.
I. INTRODUCTION of IOBYTE: Byte, a unit of data stored in a computer, a byte with 8 bits, is a very specific storage spaceCharacters: Symbols used by people, abstract meanings, such as ' 1 ' in ' a ', ' $ 'Character Set and encoding:
What
First, what is a flow?Flow is an abstract concept, is the abstraction of input, in Java programs, the input/output operation of data is carried out in a "stream" manner. The device can be file, network, memory and so on.Flow has directionality, as
The access control for the class:
There are four types of access controls, but for external classes , only the public and the default are sufficient.
Public means that the class can be used by any class.
When a class is defined as
I. Define document type, character encoding
Response.Clear ();
Response.buffer= true;
Response.charset= "Utf-8";
The following line is very important, the attachment parameter means that as an attachment to download, you can change to online
This article is an example of the Android programming implementation of the number attribution Query method. Share to everyone for your reference, specific as follows:
By sending the XML access WebService we can implement the number attribution
This article illustrates the TCP transmission of Java implementation socket. Share to everyone for your reference. The specific analysis is as follows:
Client sends data to server
* TCP transmission, the process of client establishment.* 1, create
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.