Top Posters
Since Sunday
5
a
5
k
5
c
5
B
5
l
5
C
4
s
4
a
4
t
4
i
4
r
4
New Topic  
Alek Hsiang Alek Hsiang
wrote...
Posts: 383
Rep: 1 0
3 years ago
After the following program is finished, how many bytes are written to the file t.dat?

import java.io.*;

public class Test {
public static void main(String[] args) throws IOException {
DataOutputStream output = new DataOutputStream(
new FileOutputStream("t.dat"));
output.writeChar('A');
output.close();
}
}


▸ 4 bytes

▸ 8 bytes

▸ 2 bytes

▸ none of the above
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 61 times
1 Reply
Replies
Answer verified by a subject expert
DoggggDogggg
wrote...
Posts: 399
3 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

Alek Hsiang Author
wrote...

3 years ago
Thanks
wrote...

Yesterday
Thanks
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1279 People Browsing
 102 Signed Up Today
Related Images
  
 4428
  
 1655
  
 491
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352