Java - Online Test - Hibernate - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'Hibernate' - 10 questions found


What is Lazy Initialization in Hibernate ?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

  Lazy Initialization

Which of the following is not the benefit of Lazy Initialization in Hibernate ?Hibernate
Laod When required provides better performance
Object stays lighter
Less number of Database calls
Less load on Database

  Lazy Initialization  Lazy Fetching

Which of the following is not true for Hibernate Cache ?Hibernate
First level cache is enabled by default
First level Cache is Session specific
First level cache is considered global
First level Cache came with Hibernate 1.0

  hibernate cache

Which of the following is not an Hibernate AnnotationHibernate
@Id
@JoinTable
@ManyToMany
@Autowired

  hibernate annotations

Which of the following Design pattern has been used with Hibernate Criteria ?Hibernate
Filter
Prototype
Builder
Observer

  Hibernate  Design Pattern

Which of following is not core interface of Hibernate ?Hibernate
Session
Transaction
SessionFactory
TransactionFactory

  Hibernate  hibernate Core Interface

Which of the following session method is used to disassociate / disconnect all objects from the sessionHibernate
Clear
Evict
Close
Merge

  

Which of the following session method is used to disassociate / disconnect a particular object / entity from the sessionHibernate
Clear
Evict
Close
Merge

  Hibernate  Hibernate Session

Which of following is not the resolution for preventing LazyInitializationException?Hibernate
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

  Hibernate  LazyInitializationException

Which of the following is not an advantage of JSON over XML ?JSON
Lighter and Faster
Object Representation
Supports multiple data types
Backward compatible with all XML applications

  JSON  XML







comments powered by Disqus