What is need of DAO? Write one simple DAO example?

Answer Posted / ankit

DAO(Data Access logic) provide the machanism to saperate our bussiness logic from data access logic and both code can be change independently that lead to flexibility in our application. and it also provide security because when will see spurce code from web page only the business logic can be seen and cant see the data access logic . and it also provide reusability

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the interfaces in java collections? : java collections

618


What are the different types of collections views being provided by the map interface? : java collections

615


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1582


What is the enumerator of the java collection framework? : java collections

567


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

562






What do you understand by synchronization? Why is it important?

576


What is the Spring2.5 MVC Navigation flow?

5375


What are the differences between the java collection and the java list? : java collections

617


How do I find jre path in windows?

531


my interviewer asked me what technical specification you used how to answer that question

1935


please mail me the interview question based on java/j2ee

1537


What are the different types of classes implemented in the set interfaces? : java collections

610


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1820


what is mean by hasing and maping in java platform and advantage?

1833


What is the difference between comparable and comparator in java.util pkg?

594