Q50.webp
vanhoa2005

Q50.webp

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

Thông tin

Category
PRO192
Thêm bởi
vanhoa2005
Ngày thêm
Lượt xem
1,482
Lượt bình luận
5
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom