This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt about idempotent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt about idempotent" Watch "Doubt about idempotent" New topic
Author

Doubt about idempotent

Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Hi !

In the exam, if there is a question which asks if GET is idempotent (without code or without any effect in the code), the answer will be true.

But if there is a question with a GET method that is not idempotent (which updates the database by example), the answer will be false except if we see "according to the HTTP spec", the answer will be true.

Is that correct ?

Angy.


SCJP 5
Lalit Mehra
Ranch Hand

Joined: Jun 08, 2010
Posts: 384

Hi Fabian,

According to the java specs ... a GET method is always idempotent and if it is not used as one then there's a violation of the java specs.

you might like to go through this old post to get more info ... click here

cheers :-)


http://plainoldjavaobject.blogspot.in
Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Perfect ! Thanks :-)
 
 
subject: Doubt about idempotent