J

Jatin Pandit • 395 Points
Valuable

Q. Which annotation in Room defines a primary key?

  • (A) @Key
  • (B) @Id
  • (C) @Primary
  • (D) @PrimaryKey

Explanation by: Jatin Pandit
@PrimaryKey is used to define a primary key for a Room entity.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.