PRO192_-_SU_2024_-_FE_2329.webp
Q

PRO192_-_SU_2024_-_FE_2329.webp

Kizspy | Question: 46
(Choose 1 answer)
What is the output of the following code snippet?
String fName = "output.txt";
byte[] array = {65, 66, 67};byte[] arr = new byte[3];
try {
Random AccessFile f = new Random Access File(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

  • Like
  • Angry
Reactions: Dphong and trump

Thông tin

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

Share this media

Back
Bên trên Bottom