Java core class (Type, File)


Download 39.72 Kb.
bet9/12
Sana01.03.2023
Hajmi39.72 Kb.
#1239065
1   ...   4   5   6   7   8   9   10   11   12
Bog'liq
interview questions

DESIGN PATTERNS

  • Types of design patterns.

1. MVC design pattern
1. Model-View-Controller pattern explanation.
2. Advantages and disadvantages of MVC.
3. Benefits of using MVC.
4. Spring MVC overview.
2. Proxy
1. What is the Proxy pattern?
2. Typical Use Case.
3. Rules of thumb.
4. Different proxies overview.
3. Facade
1. What is Façade pattern?
2. Steps to implements
3. Façade vs Proxy.
4. Decorator
1. What is the Decorator pattern?
2. Use case.
3. Rules to follow. Best practice.
4. Decorator vs Façade.
5. Singleton
1. What is Singleton pattern?
2. Ways to implement Singleton Class in Java.
3. Which classes are candidates of Singleton?
4. Double checked locking in Singleton.
5. Way to prevent another instance of Singleton, the same using reflection, the same using serialization.
6. When Singleton not a Singleton in Java?
7. Advantage of Singleton vs Static Class.
6. Factory
1. What is Factory pattern?
2. Advantages and disadvantages of factory pattern.
3. Why use a factory to instantiate a class?
4. Factory vs abstract factory.


SPRING
1. Spring overview
1. What is Spring Framework? Different features.
2. Overview of Spring modules.
3. Spring core container overview.
4. Spring configuration file.
5. Spring IoC Container overview.
6. Dependency Injection.
7. Constructor injection vs setter injection vs interface injection.
8. BeanFactory vs ApplicationContext.
9. Benefits of IoC.
10. What is Spring Bean?
11. XML-based vs Annotation-based vs Java-based configuration.
12. Bean Scopes overview, comparison.
13. Bean life cycle in Spring bean factory.
14. Inner beans in Spring.
15. Autowiring in Spring, limitations.` 
16. Annotation-based container configuration.
17. Differences between @Component, @Repository, @Service and @Controller.
18. @Required vs @Autowired vs @Qualifier annotations.
19. @Transactional annotations.
20. What's new in Spring Framework 5.0?. 
2. Spring Boot
1. What is Spring Boot? The main purpose
2. The minimum requirements for a Spring boot System
3. The steps to create a Spring Boot project using Spring Initializr
4. When the system gets overloaded
4. What are the @RequestMapping and @RestController annotation in Spring Boot used for?
5. What is Spring Boot CLI and how to execute the Spring Boot project using boot CLI?
6. What do you understand by auto-configuration in Spring Boot and how to disable the auto-configuration?
7. Can we create a non-web application in Spring Boot?
8. Spring vs Spring boot
9. Advantages and disadvantages of Spring boot. 

Download 39.72 Kb.

Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling