Tag: programming languages

Questions Related to programming languages

  1. Session.contains() method to determine if an instance belongs to the session cache

  2. Session.contains() method to determine if an instance belongs to the data base

  3. Both are correct

  4. None of the above


Correct Option: A
  1. Remove the object and its collections from the first level cache

  2. Remove the object and its collections from the second level cache

  3. Remove the object and its collections from the data base

  4. None of the above


Correct Option: A

Is the Session threadsafe in Hibernate ?

  1. True

  2. False

  3. No matter

  4. None of the above


Correct Option: B
  1. By using the insert="false" and update="false" attributes.

  2. By using the isinsert="false" and isupdate="false" attributes

  3. By using the isinsert="no" and isupdate="no" attributes.

  4. None


Correct Option: A
  1. A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed

  2. A Session will obtain a JDBC Connection (or a Datasource) on object create

  3. A Session has no relation with JDBC Connection (or a Datasource)

  4. None of the above


Correct Option: A
  1. Hibernate.cache.query_cache true

  2. Hibernate.cache.use_query_cache true

  3. Hibernate.cache.query_cache yes

  4. None


Correct Option: B
  1. Bag has index column

  2. Bag permits duplicate element values

  3. Bag does not permits duplicate element values

  4. None


Correct Option: B
  1. ListResultSet

  2. ResultSet

  3. ScrollableResultSet

  4. ScrollableResult


Correct Option: D