BufferedWriter类是Writer类的子类,BufferedWriter类中的()方法可以插入一个换行符。?
(A)void newLine()
(B)void close()
(C)void flush()
(D)void write(String str)
参考答案
继续答题:下一题


更多java基础知识试题
- 1以下有关类的继承的叙述中,正确的是
- 2已知如下代码:1 class Example{2 String str;3 public Example(){4 str= "example";5 }6 public Example(String s){7 str=s;8 }9 }10 class Demo extends Example{11 }12 public class Test{13 public void f (){14 Example ex = new Example("Good");15 Demo d = new Demo("Good"); } }哪句语句会导致错误?
- 3下列选项中,可以正确配置classpath的命令是( )
- 4下列关于异常的说法,不正确的是?
- 5下列语句哪一个正确( )