Java - Online Test - Lazy initialization - javasearch.buggybread.com
OCJP / SCJP
New in Java 8
Java 8 Lambda
Java 8 java.time
Search Java Test Questions
223 test questions in repository.
Java - Test Questions on 'Lazy initialization' - 4 questions found
What is Lazy Initialization in Hibernate ?
Feature to load the dependencies from Cache
Feature to load all objects and relationships in advance before they can be used
Feature to not load dependencies and relationship in advance and load when required
Feature to not load the dependencies and relationships at all
Which of the following is not the benefit of Lazy Initialization in Hibernate ?
Laod When required provides better performance
Object stays lighter
Less number of Database calls
Less load on Database
Which of the following is not an advantage of JSON over XML ?
Lighter and Faster
Supports multiple data types
Backward compatible with all XML applications
Which of following is not the resolution for preventing LazyInitializationException?
Set fetch=FetchType.EAGER for Dependent entity mapping
Make sure that we are accessing the dependent objects before closing the session
Make sure that we are accessing the dependent objects after closing the session
Wrap the complete access within Transaction
comments powered by Disqus.
comments powered by