现有一个文件file21.txt,其内容是: abCdEf, 执行下列程序之后,输出的结果是______。package ch1;import java,io.*;public class ex21{ static String name = "ch1\\file21.txt"; public static void main(String[] args) { try { readFile (); } catch(IOException ioe) { System.out.println(ioe.getMessage()); } } static void readFile () throws IOException { BufferedReader br = null; try { File f = new File(name); FileReader fr = new FileReader(f); br = new BufferedReader(fr); String str= br.readLine(); System.out.println(str.toLowerCase()); } finally if(br != null) br.close (); } }}
A.AbCdEf
B.abcdef
C.aBcDeF
D.ABCDEF
参考答案:B