what is the difference between doGet() and doPost()?
Answer Posted / venkat
whenever we use doGet() method query string will be appear
on the address bar.
but doPost() does't appear on the address bar.
doGet() method is send limited amount of data
doPost() method is send unlimited amount of data
using doGet() method we can't solve idem potent problem.
using doPost() method we can solve idem potent problem.
doGet() is faster
doPost() is slow.
doGet() method is get method based request
doPost() method is post method based request
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is a servlet context object?
What do you mean by the servlet chaining?
What is cookie in servlet?
What are common tasks performed by Servlet Container?
How can you create a session in servlet?
What is the default http method in the servlet?
What is life cycle of Servlet?
What is meant by a servlet?
What is servlet initializer?
What are the different session tracking techniques?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Explain the concept of ssi ?
What are the ways to handle multi-threading in servlets?
How do servlets work?