Android
AND-401 · Question #31
When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?
The correct answer is B. /data/data/<package name>/files. See the full explanation below for the reasoning.
Question
When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?
Options
- A/data/app/<package name>/files
- B/data/data/<package name>/files
- C/system/app/<package name>/files
- D/system/data/<package name>/files
How the community answered
(59 responses)- A3% (2)
- B83% (49)
- C10% (6)
- D3% (2)
Community Discussion
No community discussion yet for this question.