1. Which of the following is not a core interface of Hibernate?
A. Configuration B. Criteria C. SessionManagement D. Session o m Answer:C . c te a 2. Which of the following is not a core component of Hibernate? A. JDBC q M B. SessionFactory c C. Session D. Configuration M Answer:A
3. Is Session a thread-safe object?
A. True B. False C. none D. all Answer:B
4. SessionFactory is a thread-safe object.
A. True B. False C. none D. all Answer:A
5. Which of the following methods returns proxy object?
A. loadDatabase() B. getDatabase() C. load() D. get() Answer:C
6. Which of the following methods hits database always?
A. load() B. loadDatabase() C. getDatabase() D. get() Answer:D
7. Which of the following method is used inside session only?
A. merge() B. update() C. end() D. kill() Answer:B
8. The SessionFactory is heavyweight object.
A. False B. True C. none D. all Answer:B
9. Which of the following is not a state of object in Hibernate?
A. Attached() B. Detached() C. Persistent()
View all MCQ's at McqMate.com
D. Transient() Answer:A
10. Which of the following is true about HQL?
A. HQL takes java objects in the same way as SQL takes tables. B. HQL is a Object Oriented Query language C. HQL is database independent. D. All of the above. Answer:D
11. Which of the following is not an inheritance mapping strategies?
A. Table per hierarchy B. Table per concrete class C. Table per subclass D. Table per class Answer:D
12. Which of the following is not an advantage of using Hibernate Query
Language? A. Database independent B. Easy to write query C. No need to learn SQL D. Difficult to implement Answer:D
13. In which file database table configuration is stored?
A. .dbm B. .hbm C. .ora D. .sql Answer:B
14. Which of the following is not an advantage of Hibernate Criteria API?
A. Allows to use aggregate functions B. Cannot order the result set C. Allows to fetch only selected columns of result
View all MCQ's at McqMate.com
D. Can add conditions while fetching results Answer:B