Top Posters
Since Sunday
k
3
r
3
j
3
V
3
l
3
2
J
2
1
2
n
2
O
2
h
2
d
2
New Topic  
Coltonht Coltonht
wrote...
Posts: 430
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.writeShort(1234);
output.writeShort(5678);
output.close();
}
}


▸ 16 bytes

▸ 8 bytes

▸ 2 bytes

▸ 4 bytes
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

Related Topics

Coltonht Author
wrote...

4 years ago
Just got PERFECT on my quiz
wrote...

Yesterday
Correct Slight Smile TY
wrote...

2 hours ago
This calls for a celebration Person Raising Both Hands in Celebration
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1039 People Browsing
 106 Signed Up Today
Related Images
  
 1671
  
 153
  
 393
Your Opinion
Which of the following is the best resource to supplement your studies:
Votes: 292

Previous poll results: Who's your favorite biologist?