Câu 3: 2V0-72-22: Professional Develop VMware Spring
Which two statements are true concerning constructor injection? (Choose two.)
Nội dung câu hỏi
Which two statements are true concerning constructor injection? (Choose two.)
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.
- A. If there is only one constructor the @Autowired annotation is not required. — đáp án hiện tại
- B. Constructor injection only allows one value to be injected.
- C. Constructor injection is preferred over field injection to support unit testing. — đáp án hiện tại
- D. Construction injection can be used with multiple constructors without @Autowired annotation.
- E. Field injection is preferred over constructor injection from a unit testing standpoint.
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.