试题详情
- 单项选择题 现有: -f是一个对java .io.File实例的合法引用 - fw足‘个对java.io.FileWriter实例的合法引用 - bw足一个对java.io.BufferedWriter实例的合法引用 以下哪一项无效?()
A、PrintWriter prtWtr = new PrintWriter (f);
B、PrintWriter prtWtr = new PrintWriter( fw);
C、PrintWriter prtWtr = new PrintWriter(bw):
D、BufferWriter bufWtr = new BufferedWritr(f);
E、BufferWriter bufWtr = new BufferedWriter(fw);
F、BufferWriter bufWtr = new BufferedWriter (bw):
- D
关注下方微信公众号,在线模考后查看
热门试题