Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question : In Java, which of the following statements best describes the dependency inversion principle? A ) High-level modules should depend on low-level modules rather
Question : In Java, which of the following statements best describes the "dependency inversion principle"?
A ) High-level modules should depend on low-level modules rather than the other way around.
B ) Both high-level and low-level modules should depend on abstractions, not on concrete implementations.
C ) Concrete implementations should not be known to high-level modules, which should only interact with other high-level modules.
D ) The details of a module should dictate the behavior of higher-level modules.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The detailed answer for the above question is provided below The correct option is B Both highlevel and lowlevel modules should depend on abstractions ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started