要读一个较大的文件,下列创建对象的方法中哪个是最合适的【 】
A. new FileInputStream(“myfile”);
B. new InputStreamReader(new FileInputStream(“myfile”);
C. new BufferedReader(new InputStreamReader(new FileInputStream(“myfile”)));
D. new RandomAccessFile raf=new RandomAccessFile(new File(“myfile”));
查看答案
事件代理模型涉及到除【 】以外的三种对象。
A. 事件源
B. 事件处理
C. 事件
D. 事件监听器
容器被重新设置大小后,那种布局管理器的容器中的组件大小不随容器大小的变化而改变【 】。
A. CardLayout
B. FlowLayout
C. BorderLayout
D. GridLayout
创建和运行线程必须实现【 】接口
A. Thread
B. Runnable
C. Serializable
D. Collection
以下【 】类可以实现将输入流中的字节流转换为字符流。
A. InputStreamReader
B. Inputstram
C. BufferedReader
D. Reader