Start learning 50% faster. Sign in now
The HTTP PUT method is considered idempotent, meaning that making the same request multiple times will have the same effect as making it once. This characteristic makes PUT suitable for updating a specific resource or creating it if it does not exist. For example, when updating a user’s profile data, using PUT ensures that multiple requests with the same data will not create multiple resources; instead, it will consistently update the resource. An idempotent operation is crucial in network communication as it allows developers to retry requests in case of network failures without worrying about creating duplicate or inconsistent states. PUT is generally paired with a resource identifier (like /user/123) in RESTful APIs, making it straightforward for clients and servers to handle resource updates predictably. Option A (GET) - The GET method is idempotent but used only for retrieving resources, not modifying or updating them. Option B (POST) - POST is not idempotent and is mainly used for creating new resources or submitting data to the server, where repeated calls may result in multiple resource creations. Option D (DELETE) - DELETE is idempotent but is used to remove resources, not update or create them. Option E (PATCH) - PATCH can be used for partial updates and is not strictly idempotent, as multiple PATCH requests with slightly different data can yield different results.
A and B started a business by investing Rs. 12,000 and Rs. 18,000 respectively. A also worked as the active manager and for that he is entitled to recei...
A starts business with Rs.11000 and after 8 months, B joins with A as his partner. After a year, the profit divided in the 5:9. What is B’s contribut...
A and B started a business by investing Rs.500 and Rs.600 respectively. After 6 months, A increased his investment by Rs.800. Find the ratio of annual p...
P started a business investing Rs.12000. After 3 months, Q joined her with the capital of Rs.18000. After another 6 months, R joined them with the capit...
A and B invested Rs.6000 and Rs.9000 in a business respectively and after 5 months B withdrawn 50% of his initial investment and again after 5 months he...
A and B together started a business with initial investment in the ratio of 1:2, respectively. The time-period of investment for A and B is in th...
‘A’ and ‘B’ started a business by investing certain sum in the ratio 2:3, respectively for 6 years. If 30% of the total profit i...
A and B started a business by investing Rs.450 and Rs.550 respectively. After 8 months, A increased his investment by Rs.850. Find the ratio of annual p...
Armaan began a business with an initial investment of Rs. 2400. After 8 months, Bhuvan entered the business with an amount such that Armaan's investment...