Top Posters
Since Sunday
r
4
L
4
3
d
3
M
3
l
3
V
3
s
3
d
3
a
3
g
3
j
3
New Topic  
Eels Eels
wrote...
Posts: 716
Rep: 0 0
7 years ago
Look at the following code:

FileInputStream fstream =
         new FileInputStream("MyInfo.dat");
DataInputStream inputFile =
         new DataInputStream(fstream);

This code can also be written as:

A) DataInputStream inputFile =
     new DataInputStream("InputFile.txt");

B) DataInputStream inputFile =
   new DataInputStream(new FileInputStream("MyInfo.dat"));

C) FileInputStream fstream =
     new DataInputStream("InputFile.txt");

D) FileInputStream inputFile =
   new FileInputStream(new DataInputStream("MyInfo.dat"));
Textbook 
Starting Out with Java: Early Objects

Starting Out with Java: Early Objects


Edition: 4th
Author:
Read 204 times
3 Replies
Replies
Answer verified by a subject expert
ToothyToothy
wrote...
Top Poster
Posts: 744
Rep: 4 0
7 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

Eels Author
wrote...
7 years ago
I was nearly about to give up, thanks
wrote...
7 years ago
Cheers dude
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1798 People Browsing
Related Images
  
 289
  
 358
  
 837
Your Opinion
What's your favorite math subject?
Votes: 559

Previous poll results: Where do you get your textbooks?