Java Servlet Programming Question:

Download Job Interview Questions and Answers PDF

Difference between GET and POST in Java Servlets?

Java Servlet Programming Interview Question
Java Servlet Programming Interview Question

Answer:

In GET your entire form submission can be encapsulated in one URL, like a hyperlink. query length is limited to 260 characters, not secure, faster, quick and easy.
In POST Your name/value pairs inside the body of the HTTP request, which makes for a cleaner URL and imposes no size limitations on the form's output. It is used to send a chunk of data to the server to be processed, more versatile, most secure.

Download Java Servlet Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What mechanisms are used by a Servlet Container to maintain session information?What is Java Servlet session?