Exam AND-401 All QuestionsBrowse all questions from this exam
Question 58

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

    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
MmadiOption: B

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