-
Srping AOP
AOP - Aspect Oriented Programming1. What is AOP?AOP is used to separate functionalities that are not related to the core business logic. In another word, it is used to decouple cross-cutting concerns from the core business logic. (e.g. logging, ex...…
-
Transactions in Spring (monolithic)
Transactions in Spring (monolithic)1. TransactionTransaction represents a single unit of work. The ACID properties define transactional requirements. Atomicity: All operations within the transaction must succeed or fail as a unit. If failed, ...…
-
Common Annotations in Spring
Common Annotations in Spring@Component & @Repository & @Service @Component: generic annotation, Spring will automatically detect and register it as a bean @Repository: used to annotate DAO class, subclass of @Component. It is u...…
-
Spring Boot
Spring Boot (knowledge)Spring Boot VS Spring Framework (interview question)In interview: Answer the Feature of Spring Boot and Spring Framework: Spring Framework’s core feature is Dependency Injection (IOC), We don’t need to initialize the ob...…
-
Spring MVC
Spring MVC (All important points)What is Spring MVC?Spring MVC is a framework built on top of the Spring framework, it is a web framework that is used to build web applications. It is based on the MVC architecture, which is model view and controll...…
-
Dependency injection and IOC
Dependency injectionInterview Answer Two types of IOC container: BeanFactory : lazy loaded, XML ApplicationContext : eager loaded, XML & annotation IOC container life cycle: When Spring application starts...…
-
crack Java 8 Stream
StreamStream is used to process a series of operations on a collection in a pipeline. The pipeline consists of a source, zero or more intermediate operations, and a terminal operation. Stream is a one-time object that cannot be reused after the te...…
-
Java Core
Thread See HereCreate a threadGenerally, we can create a thread in two ways: Implement Runnable interface or extend Thread class.But we use Runnable interface instead of Thread class, because: Thread implements runnable, when extending Thread...…
-
React interview questions
Interview QuestionsWhat is React?React is a JavaScript library for building SPA (Single Page Application).It is component-based and uses a virtual DOM to improve performance. Virtual DOM : diffing algorithm to update the actual DOM, which improve...…
-
Docker and Kubernetes and OpenShift
DockerWhat is Docker?Docker is a platform for developing, shipping, and running applications. It allows developers to build, package, and distribute applications as containers. Containers are lightweight, standalone, and executable packages that i...…