2mark Answer Ajava
2mark Answer Ajava
10. SessionFactory:
- In Hibernate, the SessionFactory is a factory class used to create sessions. It's responsible for creating sessions and
caching information that Hibernate uses to interact with the database. It's typically a heavyweight object and is
thread-safe, designed to be created only once in an application.
12. ResultSet:
- In the context of JDBC, a ResultSet is a Java object that represents the data retrieved from a database after
executing an SQL query. It provides methods to traverse and manipulate this data. It essentially encapsulates the
result of a database query.