In The Hibernate the interface org.hibernate.Criteria represents a query against a particular persistent class. The Session is a factory for Criteria instances.
Below the given code tells us about the above conversation:
Criteria crt = session.createCriteria(Student.class);
crt.setMaxResults(50);
List student = crit.list();