ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 79 - Associate Android Developer discussion

Report
Export

What is demonstrated by the code below?

// RawDao.java @Dao

interface RawDao {

@RawQuery

User getUserViaQuery(SupportSQLiteQuery query); }

// Usage of RawDao ...

SimpleSQLiteQuery query =

new SimpleSQLiteQuery("SELECT * FROM User WHERE id = ? LIMIT 1", new Object[]{userId});

User user = rawDao.getUserViaQuery(query); ...

A.
A method in a Dao annotated class as a raw query method where you can pass the query as a SupportSQLiteQuery.
Answers
A.
A method in a Dao annotated class as a raw query method where you can pass the query as a SupportSQLiteQuery.
B.
A method in a Dao annotated class as a query method.
Answers
B.
A method in a Dao annotated class as a query method.
C.
A method in a RoomDatabase class as a query method.
Answers
C.
A method in a RoomDatabase class as a query method.
Suggested answer: A
asked 18/09/2024
Jonaid Alam
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first