Question: What is dependency injection?
- a method by which objects define dependencies they need as abstractions that allows the framework to instantiate and configure them in a central location at runtime.
- a paradigm where dependent code is injected into the bytecode of a Java application on a remote server.
- a way of injecting remote dependencies into a pre-packaged JAR file from the file system.
- a way of injecting remote dependencies into a pre-packaged WAR file from the file system.
Answer: The correct answer of the above question is Option A:a method by which objects define dependencies they need as abstractions that allows the framework to instantiate and configure them in a central location at runtime.