下列程序执行后的结果是______。package ch1;import java.io.*;public class ex22{ static, String filename = "ch1\kfile22.txt"; public static void main(String[] args) { try {FileWriter fr = new FileWriter(filename);PrintWriter pr = new PrintWriter(fr);String name = "xiaoming";String phone = "123456";String age = "12";pr.println(name + ’,’ + phone + ’,’ + age);pr.close();fr.close(); } catch(IOException ioe) {ioe.printStackTrace() }} }
A.在包ch1 中新建一个文件file22.txt, 并且在其中写入一行字符串“xiaomingl2345612”
B.在包ch1中新建一个文件file22.txt,并且在其中写入一行字符串“xiaoming, 123456,12”
C.在包chi中新建一个文件file22.txt,并且在其中写入一行字符串“xiaoming’’
D.抛出IOException