This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt about idempotent" Watch "Doubt about idempotent" New topic

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 ?


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 :-)
Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Perfect ! Thanks :-)
Have you checked out Aspose?
subject: Doubt about idempotent
jQuery in Action, 3rd edition