下列程序的运行结果是______。 package ch1; import java.io. *; public class ex28 {public stat
下列程序的运行结果是______。 package ch1; import java.io. *; public class ex28 { public static void main (String args [] ) throws IOException { try { File f1 = new File("ch1\\dir28"); f1.mkdir(); File f2 = new File(f1, "file59.txt"); FileOutputStream fos = new FileOutputStream(f2); for(int i = 0; i < 2; i++) { String s= i + "times"; byte[] b = s.getBytes(); fos.write(b,0,b.length); } } catch(IOException ioe) { ioe.printStackTrace(); } } }
A.在目录ch1下建立一个目录dir28,并且建立文件file28.txt,在文件中写入"Otimes 1 times"
B.在目录ch1下建立一个目录dir28,并且建立文件file28.txt,在文件中写入“l times”
C.在目录chi下建立一个目录dir28,并且建立文件file28.txt,在文件中写入“Otimes”
D.抛出IOExceptin异常