It is a object/interface, which is used to access data from database of data storage. WHY WE USE DAO: To abstract the retrieval of data from a data resource such as a database. The concept is to “separate a data resource’s client interface from its data access mechanism.”
What is DAO and DTO in java?
DTO is an abbreviation for Data Transfer Object, so it is used to transfer the data between classes and modules of your application. DAO is an abbreviation for Data Access Object, so it should encapsulate the logic for retrieving, saving and updating data in your data storage (a database, a file-system, whatever).
What is DAO in Servlet?
JSP – Servlets: Full Login Example You are assumed to know about the connection between java and DB. This Login application uses the so called “JavaBeans” and “DAOs” – standing for Data Access Objects – to handle the interactions with the DB.