AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 Exam - Question 58


When creating a file using android.content.Context.openFileOutput("test.txt", 0), where is the file created?

Show Answer
Correct Answer: B

When creating a file using android.content.Context.openFileOutput("test.txt", 0), the file is created in the /data/data/<package name>/files directory. This is the default internal storage directory for a specific application's private files in Android.

Discussion

1 comment
Sign in to comment
MmadiOption: B
Dec 31, 2022

B. /data/data/<package name>/files