执行下列程序段时, 若文件"file.dat"不存在, 则输出结果是()try { FileInputStream fis = new FileInputStream("file.dat");} catch (FileNotFoundException e) { System.out.print("FileNotFoundException")} catch (IOException e) { System.out.print("IOException")}
A. FileNotFoundException
B. IOException
C. FileNotFoundException IOException
D. 空
压缩流所在的包是()
A. java.util.zip
B. java.sound.sampled
C. javax.imageio
D. javax.xml.stream
下列代码实现了将一个文件的内容复制到另一个文件的功能。下划线处应填入的代码是()import java.io.*;public class test { public static void main(String[] args) { try { FileInputStream is = new FileInputStream("D:\\from.txt"); FileOutputStream os = new _______________("D:\\to.txt"); byte[] str = new ___________[1024]; while (is.available() > 0) { is.read(str, 0, 1024); os.write(str); } is.close(); os.close(); } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }}
A. FileOutputStream, byte
B. FileInputStream, byte
C. FileOutputStream, str
D. FileInputStream, str
Swing组件的事件类所在的包是()
A. javax.swing.tree
B. javax.swing.event
C. javax.swing.table
D. javax.swing.border