Which two create an InputStream and open file the “file.txt” for reading? ()
- A、 InputStream in=new FileReader(“file.txt”);
- B、 InputStream in=new FileInputStream(“file.txt”);
- C、 InputStream in=new InputStreamFileReader (“file.txt”, “read”);
- D、 FileInputStream in=new FileReader(new File(“file.txt”));
- E、 FileInputStream in=new FileInputStream(new File(“file.txt”));
正确答案:B,E
答案解析:有

微信扫一扫手机做题