PRM392_-_SP_2025_-_FE_3553.webp
Natsu_lovely

PRM392_-_SP_2025_-_FE_3553.webp

☑Kizspy.me
Consider the following code snippet:
(Choose 1 answer)
☐ A
Back
Next
String result_columns = new String[] {KEY_ID, COL1, COL2};
Cursor allRows = myDatabase.query(true, DATABASE_TABLE, result_columns, null, null, null, null, null, null);
Which of the following prints out the values of COL1 column correctly if the result is not empty?
A. if (cursor.moveToFirst()) {
do {
System.out.println(cursor.getString(1));
} while (cursor.moveToNext());
}
B. do {
System.out.println(cursor.getString(0));
} while (cursor.moveToNext());
C. if (cursor.moveToFirst()) {
do {
System.out.println(cursor.getString(0));
} while (cursor.moveToNext()); }
D. if (cursor != null) {
do {
System.out.println(cursor.getString(1));
while (!cursor.isNull());
FUO.sh
sh the exam.

Thông tin

Category
PRM392
Thêm bởi
Natsu_lovely
Ngày thêm
Lượt xem
7,862
Lượt bình luận
31
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom