What is the difference between lazy loading and eager loading?



What is the difference between lazy loading and eager loading?..

Answer / Narendra Rajpoot

Eager loading loads all data immediately, regardless of whether it's needed or not. Lazy loading delays the loading of data until it's actually required by the application. This approach can improve performance by reducing initial load times but may lead to longer wait times for certain actions that require loaded data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is aop alliance?

1 Answers  


Categorize the different types of modules in spring framework.

1 Answers  


How can you achieve internationalization using messagesource?

1 Answers  


List the modules used in spring framework?

1 Answers  


What is spring mvc interceptor and how to use it?

1 Answers  


What is difference between classnotfoundexception and noclassdeffounderror?

1 Answers  


What is service layer in spring mvc?

1 Answers  


What is spring in java with example?

1 Answers  


What is the use of @transactional in spring?

1 Answers  


What does aop stand for?

1 Answers  


Describe dispatcherservlet.

1 Answers  


What is core module in spring?

1 Answers  


Categories