Top Posters
Since Sunday
g
3
3
2
J
2
p
2
m
2
h
2
s
2
r
2
d
2
l
2
a
2
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 60 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
This calls for a celebration Person Raising Both Hands in Celebration
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
this is exactly what I needed
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1098 People Browsing
 124 Signed Up Today
Related Images
  
 248
  
 138
  
 236
Your Opinion
What's your favorite coffee beverage?
Votes: 274