AND-401 question 4 discussion

answered

Which of the following is NOT true about SQLiteOperHelper class? (Choose two)

  • A. It has two abstract methods: onCreate() and onUpgrade().
  • B. It is used to perform database querying.
  • C. It manages database creation and updates.
  • D. It manages database versions using ContentProvider.
Created 7 months ago by joseph.rodiz

joseph.rodiz

Which of the following is NOT true about SQLiteOperHelper class? (Choose two) The correct answers are B, D it is saying NOT TRUE!!

vimlaramdoo

It has 3 abstract methods: OnCreate(), onUpgrade() and onOpen(), so A is NOT true as there is no mention on onOpen(). It manages database creation and version management, so C is NOT true as there is "updates" in the answer.

thomasgatt

onOpen is not an abstract method. public void onOpen(SQLiteDatabase db) {}

thomasgatt

Updates referring to onUpgrade() I guess