Question: why dao design pattern is used?
Answer: Data Access Object Pattern or DAO pattern is used to separate low level data accessing API or operations from high level business services. ... This class is responsible to get data from a data source which can be database / xml or any other storage mechanism.