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  
mdagenh1 mdagenh1
wrote...
Posts: 439
Rep: 1 0
4 years ago
What does the following code do?

FileInputStream fis = new FileInputStream("test.dat");


▸ It creates a new file named test.dat if it does not exist and opens the file so you can write to it.

▸ It creates a new file named test.dat regardless of whether it exists or not and opens the file so you can write to it and read from it.

▸ It creates a new file named test.dat if it does not exist and opens the file so you can write to it and read from it.

▸ It creates a new file named test.dat regardless of whether it exists or not and opens the file so you can write to it.

▸ It creates a FileInputStream for test.dat if test.dat exists.
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 68 times
1 Reply
Replies
Answer verified by a subject expert
whoohoo8whoohoo8
wrote...
Posts: 386
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

mdagenh1 Author
wrote...

4 years ago
Correct Slight Smile TY
wrote...

Yesterday
Helped a lot
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
  1932 People Browsing
Related Images
  
 50
  
 257
  
 3587
Your Opinion
What's your favorite funny biology word?
Votes: 401