PrepAway - Latest Free Exam Questions & Answers

What does the following line of code do?

What does the following line of code do?
FileOutputStream fOut = openFileOutput(“MyFile.txt”, MODE_WORLD_READABLE);

PrepAway - Latest Free Exam Questions & Answers

A.
The file MyFile.txt will be created in the /data/<application-path>/ files/ directory.

B.
The file MyFile.txt will be created in the /data/data/<application-path>/ files/ directory.

C.
None are correct

D.
The file MyFile.txt will be created in the /data/data/<application-path>/ directory.

2 Comments on “What does the following line of code do?


Leave a Reply

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