Java Servlet Programming Question:

Difference between GET and POST in Java Servlets?

Tweet Share WhatsApp

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 PDF Read All 26 Java Servlet Programming Questions
Previous QuestionNext Question
What mechanisms are used by a Servlet Container to maintain session information?What is Java Servlet session?