Answered step by step
Verified Expert Solution
Link Copied!

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Programming questions

Question

Challenges Facing Todays Organizations?

Answered: 1 week ago