Multiple choice technology programming languages

HQL is used in ?

  1. Session.createQuery();

  2. Session.createCriteria();

  3. Session.createSQLQuery();

  4. Session.lod();

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HQL (Hibernate Query Language) is used with Session.createQuery() method. This method creates a Query object that executes HQL queries against the database. Session.createCriteria() is for the Criteria API (deprecated in favor of JPA Criteria), and Session.createSQLQuery() is for native SQL queries, not HQL.