Question: 50
(Choose 1 answer)
What is the output of the following code snippet?
String fName "output.txt";
byte[] array = {65, 66, 67};
bytej arr = new byte[3];
try {
RandomAccessFile f = new RandomAccessFile(fName, "rw");
f.write(array);
f.seek(0);
f.read(arr);
String str1 = new String(arr);
System.out.println(str1);
}catch (Exception e) {
System.out.println(e);
}
A. ABC
B. ACB
C. BAC
D. BCA