Backend track

Java interview questions and answers

Panel-ready Java Specialist questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

28 Moderate Concurrency Backend

What does volatile guarantee, and what does it not?

Short take Full answer on next page

Simple meaning

volatile makes reads and writes to that field visible across threads and prevents some instruction reordering around that field.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
35 Moderate Idempotency Backend

Why is PUT idempotent by contract while POST is not?

Short take Full answer on next page

Simple meaning

PUT of the same body to the same URL should leave the resource in the same state no matter how many times you retry.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 2 of 4 Next
Chat with us