Q. Which statement about entities is correct? (Solved)

1. Entities must be annotated with the @Entity annotation.

2. Entities can be final classes.

3. Entities can have a single no-arg constructor with protected visibility.

4. Instance variables of an entity can have private, protected, public, or package visibility.

  • c. Entities can have a single no-arg constructor with protected visibility.
Subscribe Now

Get All Updates & News