nerdexam
Broadcom-VMware

2V0-72.22 · Question #96

Refer to the exhibit. Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)

The correct answer is C. public Customer findByEmail(String email); D. public Customer findFirstByOrderDateBetween(Date d1, Date d2). See the full explanation below for the reasoning.

Question

Refer to the exhibit. Which two methods will be implemented at runtime if declared in a Spring Data JPA Repository? (Choose two.)

Exhibit

2V0-72.22 question #96 exhibit

Options

  • Apublic Customer getsingle(Long id);
  • Bpublic Customer findFirstOrderDateMax();
  • Cpublic Customer findByEmail(String email);
  • Dpublic Customer findFirstByOrderDateBetween(Date d1, Date d2);
  • Epublic Customer findCustomerByName(String name);

How the community answered

(55 responses)
  • A
    2% (1)
  • B
    5% (3)
  • C
    82% (45)
  • E
    11% (6)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice