Spring Framework
Spring Framework - MVC, Dependency Injection, Spring Hibernate, Spring Data JPA, Spring Boot and Spring Cloud for Microservices Architecture.
The Spring Framework is an application framework and inversion of control container for the Java platform. It’s different modules are widely used in most Java Projects across IT Industry.
Spring Core and Dependency Injection
-
How to properly @Inject a Protoype Bean into a Singleton bean in Spring
-
Two Beans with same name exists in the AppContext, how to resolve them during autowiring?
-
Service’s first method calls its second method annotated with Async annotation, what will be behavior?
-
Difference between @Component @Repository @Controller @RestController and @Service
-
How will you create a single threaded pipeline for a particular task execution using Spring?
-
How will you handle unresolved circular dependency in spring dependency injection?
Spring MVC
-
How to handle Basic Auth in Spring RestTemplate?
-
What are new features in Spring 4
-
What are new features in Spring 5
-
RestTemplate vs WebClient in Spring 5
-
How will you design & implement a referral program using Spring MVC? using unique Affiliation id assigned to brokers?
-
How will you Design and implement a highly scalable Quote Engine Using Spring MVC? - Deferred Result, Async Processing?
-
How to intercept HTTP Rest calls that take too much time in processing?
-
Spring REST Validation mechanism?
-
How to implement Long Polling using Spring MVC?
-
How to implement a Download Server with Spring MVC that does not block Servlet Container Thread?
-
Mention few DeferredResult Usecase?
-
Spring MVC validations.
-
High Level approach to integrate your web app with facebook.
-
Redirect Attributes? Spring MVC?
-
How to send errors back to form using PRG Pattern?
-
Setter vs Constructor based dependency injection in spring? pros and cons of each?
Hibernate and Spring Data JPA
-
How to prevent lost updates using Hibernate/JDBC/Data-JPA?
-
How to stream all records from a table using Spring Data JPA?
-
How will you efficiently increment number of visits on a Article using Spring Data JPA? Using @Modifying & @Query
-
How does Projections work in Spring Data JPA?
-
LockingModeType Optimistic/Pessimistic and Force Increment in Spring Data JPA.
-
How to store Tags List<String> in JPA?
-
Spring, JPA, and Hibernate - how to increment a counter without concurrency issues?
-
How will you map id of one table to be served a id in another table using Hibernate? What could be a real usecase?
-
What are different approaches for implementing inheritance hierarchy in JPA/Hibernate?
Hint: Table per concrete class, table per class hierarchy and table per subclass
-
Can Hibernate SessionFactory and Session be used across multiple threads safely?
-
What is Lazy Loading? How to enable it? How to allow web layer to access lazily loaded attributes?
-
What is Dirty Checking in Hibernate?
-
What is difference between get and load in hibernate?
-
What is advantages and disadvantages of using a ORM?
-
What is a detached object in hibernate? What are different instance states in hibernate?
-
What is a named query? how will you create a named query?
-
How to invoke a stored procedure using Hibernate?
-
How to debug Hibernate SQL statements?
-
What is difference between a sorted collection and ordered collection in hibernate?
-
How will you make sure that email is only sent if the transaction succeeds in the givens service method?
-
How to implement Optimistic Locking in hibernate?
Hibernate Tutorials
-
Design a Login Module using Hibernate
-
Design Product Catalog Schema using Hibernate - product can be of two types - Digital Products and Normal Products
Hibernate Interview
-
Top Hibernate Interview Questions for experienced Java Programmer
-
Top Hibernate Interview Questions for Investment Banking Domain
Spring Boot
-
What is Spring Boot? What are benefits?
-
What is benefit of Embedded Servlet Container? What are available options for servlet containers in spring boot?
-
How will you start your Spring Boot application at a Random Port?
-
How will you install Spring Boot App as a service in Centos or Ubuntu?
-
How to integrate Spring Boot Application with OAuth2 provider like Facebook or Google?
-
How is Web Client different from Rest Template?
-
How to create a Custom Spring Boot Banner?
-
Can we use spring 5 webflux and mvc together in one app?
-
How will you implement Cache Busting for Serving Static resource from Spring Boot Web Application.
Spring Cloud
-
What are Cloud Native Apps?
-
What is Spring Cloud?
Spring Microservices
-
What are principles of Microservices Architecture - 12 factor APP?
-
Microservices vs Monolith
-
Microservices vs SOA
-
Microservices vs Small Services
-
Architecture of Microservices
-
Challenges with Microservices
-
What Problems Do Microservices Solve?
-
Security in Microservices
-
What Microservices actually are?
Important Books & References
It is always better to practice on a project than to just cram different questions from a book. There are good books to read on Spring Framework, though
|
Design Tutorials
-
Design a highly scalable HTTP Download microservice using Spring Boot
-
Implement a Simple File Storage Microservice using Spring Cloud
-
Implement a scalable URL shortner Service
-
Implement end to end Spring Boot Microservice and deploy it on Unix as a service
ebook PDF - Cracking Spring Microservices Interviews for Java Developers
This ebook discusses 120 plus real problems and their solutions for Spring microservices architecture based on Spring Boot, Spring Cloud, Cloud Native Applications. It covers core concepts of microservices architecture, various design patterns, interview questions & answers, security in microservices, testing strategies and best practices in distributed system design.