1
Inputstream/outputstream-> filterstream + nodestream->
Reader/writer-> inputstreamreader + outputstreamwriter (for char <--> byte bidirectional conversion)
Buffered defaults to 8 K
Unicode> UTF-8 encoding
Unicode decoding <-UTF-8
2
Pipestream is similar to socket-based blocking inter-thread pipeline communication.
During serialization, only all non-static members are saved. Static members and methods are not saved. If an object member exists, the object member also needs to inherit the flag interface. The read and write implemented inside the serialized object are special private methods.
3
Stream objects of the IO class in Java are divided into two types: node type, data source, and filter type, which provide functions and capabilities.
4
When a local variable or a parameter passed in by a method's internal class access method is declared, the variable and parameter must be final. The reason is very interesting. In other cases, is there such a situation? I cannot remember it now. >_<
In addition, internal class objects must be generated using external class objects. Otherwise, there will be no external class objects.
Form:
Externalclass external = new externalclass ();
Externalclass. Inner inner = External. New External. Inner ();
5
I accidentally read the source code of join, which was originally implemented at the Java layer.
6
Explicitly Written string objects such as "I \'m hungry" are stored in the global string pool, as long as it is the object generated by the display string of these words (for example, directly assigned to the string), it is the same reference. Of course, if you first create a new String object, it is naturally different.
7
A subclass inherits the parent class. When constructing a subclass, it must call the parent class construction first (the first line). As for Shenma, this is very simple. First, logically, there is no son from Lao Tzu, and there must be inheritance. you can't forget that the son is initialized by Lao Tzu, or the initialization is different when the son hasn't written code.
By default, if the parent class is constructed, a default class is provided during the runtime, And the subclass does not need to be displayed and called. If there is a construction without parameters, the subclass does not need to display the call. If there is only a construction with parameters, or you want to select a construction, you must display the call in the first line of the subclass construction, super (OO, XX );
8
The integer class seems rather sinister... Is it buffered ...? 0-255?