网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
OutputStreamWriter类包含的方法主要有( )。
A.public OutputStreamWriter(OutputStream out)
B.public voidwrite(intc)throws IOException
C.public voidwrite(String str)throws IOException
D.public flush throws IOException
参考答案
更多 “ OutputStreamWriter类包含的方法主要有( )。A.public OutputStreamWriter(OutputStream out)B.public voidwrite(intc)throws IOExceptionC.public voidwrite(String str)throws IOExceptionD.public flush throws IOException ” 相关考题
考题
( 22 )下列叙述中,错误的是A )所有的字节流都从 InputStream 类继承B )所有的字节输封流都从 OutputStream 类继承C )所有的字符钞流都从 OutputStreamWriter 类继承D )所有的字符输入流都从 Reader 类继承
考题
下列叙述中,错误的是A.所有的字节输入流都从InputStream类继承B.所有的字节输出流都从OutputStream类继承C.所有的字符输出流都从OutputStreamWriter类继承D.所有的字符输入流都从Reader类继承
考题
给定以下程序段//insertcodepublicclassfoo(publicstaticvoidmain(String[]args)throwsExceptionprintWriterout=newPrintWriter(new java.io.outputStreamWriter(System.out),true);out.printIn(“Hello”);要使程序能正确运行,在//insertcode处必须添加()语句。A.importjava.io.PrintWriter;B.includejava.io.PrintWriter;C.importjava.io.OutputStreamWriter;D.includejava.io.OutputStreamWriter;
考题
//pointXpublicclassfoo(publicstaticvoidmain(String[]args)throwsException{printWriterout=newPrintWriter(newjava.io.outputStreamWriter(System.out),true;out.printIn(Hello”);})WhichstatementatPointXonline1allowsthiscodetocompileandrun?()A.Importjava.io.PrintWriter;B.Includejava.io.PrintWriter;C.Importjava.io.OutputStreamWriter;D.Includejava.io.OutputStreamWriter;E.Nostatementisneeded.
考题
WhichcanbeusedtoencodecharSforoutput?()
A.Java.io.OutputStream.B.Java.io.OutputStreamWriter.C.Java.io.EncodeOutputStream.D.Java.io.EncodeWriter.E.Java.io.BufferedOutputStream.
考题
88、(字符输出流)所有的字符输出流都从OutputStreamWriter类继承。
热门标签
最新试卷