CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 10: 2V0-72-22: Professional Develop VMware Spring

Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the ApplicationContext to initialize successfully? (Choose three.)

Nội dung câu hỏi

Given an ApplicationContext containing three bean definitions of type Foo with bean ids foo1, foo2, and foo3, which three @Autowired scenarios are valid and will allow the ApplicationContext to initialize successfully? (Choose three.)

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. @Autowired public void setFoo (Foo foo) {…}
  2. B. @Autowired @Qualifier (“foo3”) Foo foo; — đáp án hiện tại
  3. C. @Autowired public void setFoo (@Qualifier (“foo1”) Foo foo) {…} — đáp án hiện tại
  4. D. @Autowired private Foo foo;
  5. E. @Autowired private Foo foo2; — đáp án hiện tại
  6. F. @Autowired public void setFoo(Foo foo2) {…}

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề