Spring & Hibernate Interview Questions: What Really Happens Under the Hood? After my previous blog on Java & Spring internals , one thing became pretty clear: Knowing the annotation is easy. Explaining what happens because of that annotation is where the real interview begins. You can write: @Transactional But do you know how Spring actually starts the transaction? You can add a Spring Boot dependency. But do you know why Spring suddenly creates a bunch of beans? You can modify a JPA entity without explicitly calling save() . But do you know why Hibernate still sends an UPDATE query? And here's the one I really like: Two users try to buy the last item in stock at exactly the same time. What happens? These are the kinds of questions that move an interview from "Do you know Spring?" to "Do you actually understand Spring?" So, let's go under the hood again. 🔹 Spring & Spring Boot 1. @Bean vs @Component — What's Actually Different? At firs...
All the widely diverging radii of the Universe meet at a common centre.It's not the question of how different we are but at what degree of differences we lie. Today science is evident that each body in this well diversified universe, arises from the one single source so, my friend we all are the streams coming out of one big ocean and will tend to converge in the same. It's just a drop out of that big ocean that I present in front of you fervently with the hope and gesture of unification.