Google News
logo
Java Servlets - Interview Questions
What is the difference between Get () method and Post() method in java servlets?
The reasons why the Get () method is preferred over the Post() method are given below.
 
Get () method :
* Here, a specific amount of data or information can be sent as the data is sent through the header.
* In the Get() method, data is not secured as it is exposed in the URL bar to the user.
* Get () method can be bookmarked.
* Generally, the get () method is more effective and used over the post () method.

Post () method :
* Here a huge amount of data or information can be transferred as the data is sent through the body.
* As the data in the Post () method is sent through the body, it is secured.
* Post () method cannot be bookmarked.
* Generally, the Post () method is less effective and is not often used.
Advertisement