What is the result?

Given that myfile.txt contains: What is the result?

Given that myfile.txt contains: What is the result?

A.
compilation fails

B.
an exception is thrown at runtime

C.
newfile.txt is empty

D.
new file.txt contains: 1: First 2: Second 3: Third

E.
new file.txt contains: 1: First 2: Second 3: Third

Explanation:



Leave a Reply 1

Your email address will not be published. Required fields are marked *


bob

bob

Possible answers should be read like this :

A.
compilation fails

B.
an exception is thrown at runtime

C.
newfile.txt is empty

D.
newfile.txt contains:
1: First
2: Second
3: Third

E.
newfile.txt contains:
1: First 2: Second 3: Third