标签:字节 family read hba art obj dwr gre font
Java中的字节输入出流和字符输入输出流
以下哪个流类属于面向字符的输入流( )
A BufferedWriter
B FileInputStream
C ObjectInputStream
D InputStreamReader
解析:IO流
(1)字节输入流
基类:InputStream
FileInputStream、ByteArrayInputStream、PipedInputStream、BufferedInputStream、ObjectInputStream、FilterInputStream、PushbackInputStream、DataInputStream
(2)字节输出流
基类:OutputStream
FileOutputStream、ByteArrayOutputStream、PipedOutputStream、BufferedOutputStream、ObjectOutputStream、FilterOutputStream、PrintStream、DataOutputStream
(3)字符输入流
基类:Reader
FileReader、CharArrayReader、PipedReader、StringReader、BufferedReader、InputStreamReader、FilterReader、PushbackReader
(4)字符输出流
基类:Writer
FileWriter、CharArrayWriter、PipedWriter、StringWriter、BufferedWriter、OutputStreamWriter、FilterWriter、PrintWriter
答案:D。
标签:字节 family read hba art obj dwr gre font
原文地址:http://www.cnblogs.com/wzzkaifa/p/7125858.html