A Learning Portal from Recruitment India
What does the Session object hold?
Second Level Cache
First Level Cache
Both A & B
None of the above
Answer with explanation
Answer: Option BExplanation
The correct answer is First Level Cache
The session object holds the first-level cache data. It is enabled by default. The first-level cache data will not be available to the entire application. An application can use many session objects.
Workspace
Who invented hibernate?
Elijah King
Gavin King
Lucas King
None of the above
Answer with explanation
Answer: Option BExplanation
The correct answer is Gavin King
Hibernate was started in 2001 by Gavin King with colleagues from Cirrus Technologies as an alternative to using EJB2-style entity beans.
Workspace
What is the full form of POJOs?
Plain Old Java Objects
Plain Open Java Objects
Plain Old Java Objects
Particular Old Java Objects
Answer with explanation
Answer: Option CExplanation
The correct answer is Plain Old Java Objects
Workspace
How many layers are accessible in Hibernate architecture?
4
6
2
3
Answer with explanation
Answer: Option AExplanation
The correct answer is 4
Workspace
What is the full form of HQL?
Hibernate Query Language
Hibernate Queue Language
Hipher Query Language
None of these
Answer with explanation
Answer: Option AExplanation
The correct answer is Hibernate Query Language
Workspace
Which of the method is easy for a Java programmer to add a criterion?
HQL
SQL
HCQL
All of the above
Answer with explanation
Answer: Option CExplanation
The correct answer is HCQL provides methods to add criteria, so it is easy for the java programmer to add criteria.
Workspace
Which of the following isn’t a core interface of Hibernate?
Criteria
Configuration
Session
SessionManagement
Answer with explanation
Answer: Option DExplanation
The correct answer is SessionManagement
session management is not a core interface of Hibernate. Configuration, Criteria, SessionFactory, Session, Query and Transaction are the core interfaces of Hibernate.
Workspace
Which of the following method is used inside the session only?
kill()
end()
update()
merge()
Answer with explanation
Answer: Option CExplanation
The correct answer is updated ()
update() method can only be used inside the session. update() should be used if the session does not contain the persistent object.
Workspace
Which of the following are the most common configuration methods of Hibernate Configuration
web.config
XML Configuration hibernate.cfg.xml
Mapping files and XML Configuration hibernate.cfg.xml
http.conf
Answer with explanation
Answer: Option CExplanation
The correct answer is Mapping files and XML Configuration hibernate.cfg.xml
Workspace