nerdexam
Broadcom-VMware

2V0-72.22 · Question #89

Refer to the exhibit. AppConfig is a Java configuration class. Which two statements are true? (Choose two.)

The correct answer is D. The bean is of type clientService and by default will be a Singleton. E. The Java configuration can be profile specific by adding a @Profile annotation. See the full explanation below for the reasoning.

Question

Refer to the exhibit. AppConfig is a Java configuration class. Which two statements are true? (Choose two.)

Exhibit

2V0-72.22 question #89 exhibit

Options

  • AThe clientService bean declared will have prototype scope by default.
  • BThe name of the clientService() method is invalid and will throw an error.
  • CThe clientService bean will be lazy initialized the first time accessed.
  • DThe bean is of type clientService and by default will be a Singleton.
  • EThe Java configuration can be profile specific by adding a @Profile annotation.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    12% (3)
  • D
    81% (21)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice