PrepAway - Latest Free Exam Questions & Answers

Which of these is the correct procedure to create and use an SQLite database?

Which of these is the correct procedure to create and use an SQLite database?

PrepAway - Latest Free Exam Questions & Answers

A.
Call the ApplicationContext methods createDatabase() and openDatabase().

B.
Extend the android.database.sqlite.SQLiteOpenHelper class, implementing the onCreate()
method and onUpgrade() methods, then call the getWritableDatabase() method.

C.
Declare an instance of the android.database.sqlite.SQLiteOpenHelper class and call each of
the methods onCreate(), onUpgrade(), and getWritabieDatabase().

D.
Implement the android.database.SQLiteOpenHelper interface, writing the implementation of the
onCreate() and onUpgrade() methods, and pass it as a parameter to
ApplicationContext.createOrOpenDatabase().

Explanation:

One Comment on “Which of these is the correct procedure to create and use an SQLite database?


Leave a Reply

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