Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between doGet() and doPost()?

Answers were Sorted based on User's Feedback



what is the difference between doGet() and doPost()?..

Answer / annamalai

Hai doGet() method is the default HTTPServletRequest method.
In this user entered data is appended to the URL as query
String. It can send only limited amount of data. In doPost()
method the user entered information as data and not appended
to the URL.It can send any amount of data.

Is This Answer Correct ?    29 Yes 1 No

what is the difference between doGet() and doPost()?..

Answer / giridhar gangapatnam

doGet() doPost()
1)doGet() method can send 1)doPost() method can send
limited amount of data large amount of data.
i.e.upto 256 characters
only.

2)In doGet() method when we 2)In doPost() methodrequest
send request then in Request is passed along withbody
Format there is no body part, part of theRequestFormat.
the request is passed along doPost() method Request
with only Request Format header Format has both body and
part only. header part.

3)doGet() method send limited 3)large amount data has
data because it has only header sent through body part
part,header part has limited of the RequestFormat.
memory to carry the data.

4)doGet() method support book 4)doPost() method doesn't
marks. support book marks.

5)when we send request parameters 5)The requested parameter
in doGet() it will display the in doPost() will not dis
information in URL as a query play the information as
string.so in doGet() data there a query string in URL.so
is no data security. data is secured.

Is This Answer Correct ?    9 Yes 1 No

what is the difference between doGet() and doPost()?..

Answer / srivani

do Get() method carry only 255 characters of data.In depends
on browsers 1024 is carried.But do post() carry more than 255.

Is This Answer Correct ?    6 Yes 3 No

what is the difference between doGet() and doPost()?..

Answer / 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

what is the difference between doGet() and doPost()?..

Answer / sharief

doGet() append the data to the link.
doPost() will not append the data to the link.

Efficiency is less for doPost() than doGet().Hence,doGet()
usage is more when compared to doPost().

only 255 characters are restricted for doGet(),where as
doPost() doesnt have any restrictions.

Is This Answer Correct ?    1 Yes 0 No

what is the difference between doGet() and doPost()?..

Answer / rajkumari meena

the perticular data is sent to the server by dopost()
doget() is move to the next page

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

How to get the actual path of servlet in server?

0 Answers  


What is Generic Servlet and how it is different from Http Servlet?

5 Answers   Wipro,


Explain the difference between get and post method in servlet?

0 Answers  


What is a servlet?

0 Answers  


What is servlet and its use?

0 Answers  


How do we call one servlet from another servlet?

0 Answers  


What is use of parseQueryString?

1 Answers  


What do you mean by deployment descriptor?

0 Answers  


Are Servlets Thread Safe? How to achieve thread safety in servlets?

0 Answers  


How does java thread pool work?

0 Answers  


difference between forward and sendredirect

6 Answers   Accenture,


Why do we need a constructor in a servlet if we use the init method?

0 Answers  


Categories