Android
OA0-002 · Question #144
When executing android.content.Context.openFileOutput("sample.txt", 0), which path is the file stored in?
The correct answer is B. /data/data/<package name>/files. See the full explanation below for the reasoning.
Question
When executing android.content.Context.openFileOutput("sample.txt", 0), which path is the file stored in?
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
(24 responses)- A13% (3)
- B75% (18)
- C4% (1)
- D8% (2)
Community Discussion
No community discussion yet for this question.