Java docs of close() method of java.lang.AutoCloseable says
Note that unlike the close() method of Closeable, this
close()method is no
To adopt Einstein's aphorism, if you do the same thing, and get different results, then the method is not idempotent.
"Please sir, can I have a pay rise?"
"No"
Same result every time. Asking for a pay rise is an idempotent operation.
get request: If properly implemented then no matter how many times you make this request, you will get the same response.post request to create a resource - every time you do this you will be changing state of the application you are posting this to: a new resource will be created every single time!