different between doGet and doPost() are as follows:
doGet() method is a default method whereas doPost() explicitly
should be mentioned
doGet execute in 3 situation: 1-when end user clicks submit button 2-when
end user provides URL 3-when end user clicks on the hyperlink
but doPost used only when we click on submit method.
doGet is not secure but doPost is most secure.
doGet method is used to get the data from the server whereas doPost is used
to post the data to the server.
User name and password and secure data should not be sent by doGet().
under doPost() we can send it.
with doGet method we can send 255 - 260 KB data whereas doPost is unlimited
doGet() is more faster than doPost().