sample questions

Q. Differentiate between Application Server and Web Server?
Application server and web server in Java both are used to host Java web application. Though both application server and web server are generic terms, But on  Java J2EE perspective main difference between web server and application server is support of EJB. In order to run EJB or host enterprise Java application file you need an application server like JBoss, WebLogic, WebSphere or Glassfish, while you can still run your servlet and JSP or java web application  file inside any web server like Tomcat or Jetty.

Q. What is difference between GET and POST method in HTTP protocol?
There several differences between GET and POST method including length of data required to Send to Server. GET is less secure and can only send limited data hence not useful to transfer sensitive information.
1) GET method passes request parameter in URL String while POST method passes request parameter in request body.
2) GET request can only pass limited amount of data while POST method can pass large amount of data to server.
3) GET request can be bookmarked and cached unlike POST requests.
4) GET is mostly used for view purpose (e.g. SQL SELECT) while POST is mainly use for update purpose (e.g. SQL INSERT or UPDATE).

Q. Explain JSP Objects?

Q. Explain java packages for writing servlet application?





Visit My Blog: vinay-kumar-saini.blogspot.com/

No comments:

Post a Comment