Olete.in
Articles
Mock Tests
🧪 Hibernate MCQ Quiz Hub
Hibernate - Java (MCQ) questions and answers
Choose a topic to test your knowledge and improve your Hibernate skills
1. Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
By log4j.xml file
By log4j.properties
Both A & B
None of the above
2. What does the Session object hold?
First Level Cache
Second Level Cache
Both A & B
None of the above
3. In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider It holds the second level cache (optional) of data is _____.
Session
SessionFactory
Transaction
ConnectionProvider
4. In case of Table per Concrete class there will be three tables in the database having no relations to each other. Which are the ways to map the table?
By union-subclass element b.
By self-creating the table for each class
Both A & B
None of the above
5. Abbreviate the term HQL?
Hibernate Queue Language
Hibernate Query Language
Hipher Query Language
None of the above
6. Which method is easy for a java programmer to add a criteria?
HCQL
HQL
SQL
None of the above
7. Hibernate is an?
Open Source
Lightweight
ORM
All mentioned above
8. Which of these simplifies an Object Relational Mapping tool?
Data creation
Data manipulation
Data access
All mentioned above
9. How many layers are available in Hibernate architecture?
3
4
5
2
10. Which session bean does the conversational state between multiple method calls is not maintained by the container?
Stateful Session Bean
Stateless Session Bean
Singleton Session Bean
None of the above
11. Which type of instances retain no data or conversational state for a specific client?
Message-Driven Bean
Session Bean
Entity Bean
None of the above
12. Which middleware services are provided by EJB?
Security
Transaction Management
Both A & B
None of the above
13. How many types of session beans are available in EJB?
2
3
4
5
14. Which server-side component is required to be deployed on the server?
EJB
RMI
Both A & B
None of the above
15. Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?
By log4j.xml file
By log4j.properties
Both A & B
None of the above
16. What does the Session object hold?
First Level Cache
Second Level Cache
Both A & B
None of the above
17. In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider It holds the second level cache (optional) of data is _____.
Session
SessionFactory
Transaction
ConnectionProvider
18. In case of Table per Concrete class there will be three tables in the database having no relations to each other. Which are the ways to map the table?
By union-subclass element b.
By self-creating the table for each class
Both A & B
None of the above
19. Abbreviate the term HQL?
Hibernate Queue Language
Hibernate Query Language
Hipher Query Language
None of the above
20. Which method is easy for a java programmer to add a criteria?
HCQL
HQL
SQL
None of the above
21. Hibernate is an?
Open Source
Lightweight
ORM
All mentioned above
22. Which of these simplifies an Object Relational Mapping tool?
Data creation
Data manipulation
Data access
All mentioned above
23. How many layers are available in Hibernate architecture?
3
4
5
2
24. Which session bean does the conversational state between multiple method calls is not maintained by the container?
Stateful Session Bean
Stateless Session Bean
Singleton Session Bean
None of the above
25. Which type of instances retain no data or conversational state for a specific client?
Message-Driven Bean
Session Bean
Entity Bean
None of the above
26. Which middleware services are provided by EJB?
Security
Transaction Management
Both A & B
None of the above
27. How many types of session beans are available in EJB?
2
3
4
5
28. Which server-side component is required to be deployed on the server?
EJB
RMI
Both A & B
None of the above
Submit