Hibernate MCQ Questions And Answers - Java Technologies

Hibernate MCQs : This section focuses on "basics" of Hibernate. These Multiple Choice Questions (MCQ) should be practiced to improve the Hibernate skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Hibernate ORM stands for ?

A. Class Relational Mapping
B. Class Object Mapping
C. Object Relational Mapping
D. None of the above

View Answer


2. Which of the following are advantages of Hibernate?

A. Clean Readable Code
B. Hibernate Query Language
C. Exception Handling
D. All of the above

View Answer


3. A ____________ is an object that maintains the connection between Java object application and database.

A. cookie
B. session
C. cache
D. persist

View Answer


4. SessionFactory provides an instance of┬áSession.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


5. _____________ is mainly used for improving the application performance by helping to load the child objects on demand.

A. Load
B. Configuration
C. Lazy loading
D. CGF

View Answer


6. Hibernate has _____ cache types

A. 1
B. 2
C. 3
D. 4

View Answer


7. A ___________ represents a unit of work with the database and most of the RDBMS supports transaction functionality.

A. Query objects
B. Session
C. Criteria objects
D. Transaction

View Answer


8. Which session method begin a unit of work and return the associated Transaction object?

A. clear
B. cancelQuery
C. Transaction beginTransaction
D. Transaction

View Answer


9. What do you think about the statement - "session being a thread-safe object"?

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer


10. The Hibernate architecture consists of?

A. persistent object
B. session factory
C. transaction
D. All of the above

View Answer




Discussion


* You must be logged in to add comment.