import java.io. * ;
public class TestIOApp {
public static void main(String args[]) throws IOException {
FileOutputStream outStream = new FileOutputStream(“temp.txt”);
String s = “test”;
for (int i = 0; i
outStream.write(s.charAt(i));
outStream.close();
}
}
Cho biết số byte mà đoạn chương trình sau ghi ra tập tin temp. txt
A. 2 bytes
B. 4 bytes.
C. 8 bytes
D. 16 bytes
Hướng dẫn
Chọn B là đáp án đúng
Thư viện tài liệu12 Tháng bảy, 2023 @ 2:46 chiều