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 is java collection? : java collections

809


What are the interfaces in java collections? : java collections

840


Which sorting algorithm is used by collections.sort() in java ?

735


can u draw class/object diagram for ATM

5759


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

765


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

785


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

794


What is iterator in the java collections framework? : java collections

737


What are the classes in the java collection framework? : java collections

806


Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

2104


Hi we have an urgent requirement for Java/J2ee technical lead position & also looking for "Java Guidewire claimcentre" experienced professional for Bangalore location if interested can reach srisanh@gmail.com

2742


What are the types of the main implementing classes in the map interfaces? : java collections

840


What are the types of java collections? : java collections

732


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.?.

2038


please mail me the interview question based on java/j2ee

1721