问题 单项选择题

OutputStreamWriter类包含的方法主要有( )。

A.public OutputStreamWriter(OutputStream out)

B.public voidwrite(intc) throws IOException

C.public voidwrite(String str)throws IOException

D.public flush throws IOException

答案

参考答案:A

解析: 选项B、C、D都是Writer类的方法。OutputStreamWriter类包含的方法有OutputStreamWriter()、 close()等。

单项选择题
填空题