aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 383

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 :-)
I agree. Here's the link:
subject: Doubt about idempotent
Similar Threads
HFS-question on idempotent methods
idempotenet or NOT
What is an Idempotent Requests