Top Posters
Since Sunday
8
5
z
4
n
4
t
4
3
k
3
x
3
r
3
m
3
j
3
c
3
New Topic  
Frost Frost
wrote...
Posts: 433
4 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.writeUTFString("ABCD");
output.close();
}
}


▸ 2 bytes

▸ 8 bytes

▸ 10 bytes

▸ 4 bytes

▸ 6 bytes
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 88 times
1 Reply
Replies
Answer verified by a subject expert
amw87470amw87470
wrote...
Posts: 379
4 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

Frost Author
wrote...

4 years ago
this is exactly what I needed
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
Brilliant
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1081 People Browsing
Related Images
  
 712
  
 293
  
 1698
Your Opinion
What's your favorite coffee beverage?
Votes: 303