




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Useful for Java students who has Spring framework knowledge before attending any interviews.
Typology: Study notes
1 / 335
This page cannot be seen from the preview
Don't miss anything!





























































































@Component public class TodoBusinessService {
@Autowired TodoDataService dataService;// = new TodoDataService()
public TodoBusinessService(TodoDataService dataService) { this.dataService = dataService; }
public interface TodoDataService { List
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
public interface SortAlgorithm { public int[] sort(int[] numbers); }
public class QuickSortAlgorithm implements SortAlgorithm {
public class BubbleSortAlgorithm implements SortAlgorithm {
public class ComplexAlgorithmImpl {
BubbleSortAlgorithm bubbleSortAlgorithm = new BubbleSortAlgorithm();
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
@Component public class ComplexAlgorithmImpl {
@Autowired private SortAlgorithm sortAlgorithm;
@Component public class QuickSortAlgorithm implements SortAlgorithm {
public interface SortAlgorithm { public int[] sort(int[] numbers); }