HI all,
I faced a question during my
java interview.
What is the main difference between Java class and a
Servlet class???
I gave the answer
1. Java is standalone application and a Servlet class is Server side.
2. Java used main method and Servlet used init(),service(doGet(),doPost()) and destroy() method for completion the application.
3. Servlet used for make dynamic HTML pages.and so on..
Bzut the interviewer wanted more answer from me, but I was not able for more..
I want to know what is the exact answer for this question and I have searched in google but I didn't find more else....
So, please clarify it for me in future.....
Thanks!!!