Conceptual Flashcards
What is dependency injection? What problem does it solve?
Dependency injection (DI) is the concept in which objects get other required objects from outside. It helps to decouple.
Name three types of dependency injection.
1) constructor injection
2) method injection
3) Property injection
What is the DRY principle?
DRY stands for Don’t Repeat Yourself. In Java, it means don’t write the same code repeatedly.
What do we mean by “separation of concerns”? Why is it important? Is it?
is a design principle for separating a computer program into distinct sections. Each section addresses a separate concern, a set of information that affects the code of a computer program.
What are common logical application layers?
What is the MVC pattern? In which layers do we implement it?
What is a design pattern? Name one other than MVC.