🧪 Hibernate MCQ Quiz Hub

Hibernate Mcq Set 1

Choose a topic to test your knowledge and improve your Hibernate skills

1. Which of the following methods hits database always?




2. Select the inheritance model which is NOT available in Hibernate




3. Which method is easy for a Java programmer to add a criterion?




4. Which of the following are most common configuration methods of Hibernate Configuration




5. Which of the following is true about transient state of a persistent entity?




6. Which of the following are tags of hibernate.cfg.xml?




7. To persist collections of embeddable type, hibernates uses




8. Which of the following is not an inheritance mapping strategies?




9. Which of the following is FALSE about Session in hibernate




10. Which of the following is true about query level cache in hibernate?




11. The QBC stands for




12. If a single table hosts all the instances of a class hierarchy, then it is known as




13. Select the design pattern that should be followed while creating SessionFactory in hibernate?




14. The Hibernate XML configuration file name is?




15. What does hibernate.hbm2ddl.auto create this means?




16. In which file database table configuration is stored?




17. Which of the following is not a Session method?




18. What does "" means?




19. Which statement is correct?




20. In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider,It holds second level cache (optional) of data?




21. Which of the following is not a core interface of Hibernate?




22. Which of the following methods returns proxy object?




23. Which of the following method is used inside session only?




24. Which of the following is not a state of object in Hibernate?




25. Which of the following is not an advantage of using Hibernate Query Language?




26. Which of the following is not an advantage of Hibernate Criteria API?




27. Which of the following is not a core component of Hibernate?




28. Which of the following is true about detached state of a persistent entity?




29. Which of the following elements is used to define specific mappings from a Java classes to the database tables?




30. Which of the following element maps java.util.Map property in hibernate?




31. Which of the following element is used to represent many-to-many relationship in hibernate?




32. Which of the following database is not supported by Hibernate?




33. Which of the following is true about HQL?