| | | | MCQ Tutorial - JAVA->Hibernate | | | | 1.) Which of the following are most common configuration methods of Hibernate Configuation | | Options are: | | A.) XML Configuration hibernate.cfg.xml
| | B.) Mapping files and XML Configuration hibernate.cfg.xml
| | C.) web.config
| | D.) http.conf
| | Correct Option: B | | | | | | | 2.) hich of the following is FALSE about Session in hibernate | | Options are: | | A.) Session is the primary interface for the persistence service
| | B.) Session is a light weight non-threadsafe object
| | C.) Session represents a single unit-of-work with the database
| | D.) You can share the session between threads
| | Correct Option: D | | | | | | | 3.) Which of the following are tags of hibernate.cfg.xml? | | Options are: | | A.) SQL variant to generate
| | B.) DTD
| | C.) JDBC connection
| | D.) All of the options
| | Correct Option: D | | | | | | | 4.) Which of the following is not a Session method? | | Options are: | | A.) Session.persist()
| | B.) Session.saveorupdate()
| | C.) Session.remove()
| | D.) Session.save()
| | Correct Option: C | | | | | | | | | | | |