Multiple choice java

What would be a typical use of ejbSelect() methods?

  1. Using ejbSelect() methods in session beans for specifying the selection criteria for a list

  2. Using ejbSelect() methods within ejbHome methods to return entities

  3. Using ejbSelect() methods to access fields of a bean instance

  4. Using ejbSelect() methods to perform operations not specific to a entity instance

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ejbSelect methods are query methods defined in the entity bean class but not exposed in home/remote interfaces. They perform database operations independent of a specific bean instance, often used within home methods (ejbHome) to return entity results or aggregate values.