Question d’entretien chez Accenture

The interviewer asked questions mostly on basics of Java & Spring . 1)Java 8 Stream API & Lamda expressions 2)Sort employee based on salary using stream API 3)What is composition & advantages of composition over inheritance 4)Singleton class & race conditions 5)How do you connect to multiple databases in a same application ? 6)Spring scopes 7)How do you make a spring bean thread safe ? 8)ExecutorService & utilization 9)SQL joins 10)Difference between function & procedure 11)Difference between List , Set & Map 12)Concurrent HashMap internal implementation 13)What is dispatcher servlet in spring 14) Cyclic dependency issues in spring & how to resolve them 15) How do you create spring boot application 16)What happens if we annotate controller @Component , will it work ?