What are the ACID properties of a transaction?
Simple meaning
Atomicity: all statements commit or none do.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready Java Specialist questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
Atomicity: all statements commit or none do.
Open the full page for Why, Steps, Example and Key takeaway.
Read uncommitted can see dirty data.
Open the full page for Why, Steps, Example and Key takeaway.
A covering index includes every column the query needs, so the engine never visits the heap or clustered table.
Open the full page for Why, Steps, Example and Key takeaway.
DISTINCT removes duplicate result rows.
Open the full page for Why, Steps, Example and Key takeaway.
It is a subquery that references columns from the outer query, so it may run once per outer row.
Open the full page for Why, Steps, Example and Key takeaway.
When a read path must join five tables on every product card and p99 latency is too high.
Open the full page for Why, Steps, Example and Key takeaway.
Synchronizing on this or on a public class object lets strangers lock the same monitor and deadlock you.
Open the full page for Why, Steps, Example and Key takeaway.
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.
The consumer waits on the lock while the queue is empty, releasing the monitor.
Open the full page for Why, Steps, Example and Key takeaway.
synchronized is simpler and sufficient for most monitors.
Open the full page for Why, Steps, Example and Key takeaway.
Unbounded new Thread() under load will exhaust memory and file descriptors.
Open the full page for Why, Steps, Example and Key takeaway.
Runnable.run returns void and cannot throw checked exceptions.
Open the full page for Why, Steps, Example and Key takeaway.
Collections.synchronizedMap locks the entire map on every call.
Open the full page for Why, Steps, Example and Key takeaway.
It is the Java Memory Model rule that says memory writes by thread A become visible to thread B in a defined way.
Open the full page for Why, Steps, Example and Key takeaway.
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.
The client sends a unique Idempotency-Key
Open the full page for Why, Steps, Example and Key takeaway.
OFFSET skips N rows
Open the full page for Why, Steps, Example and Key takeaway.
Create: 201 with Location, or 200 if the body includes the resource.
Open the full page for Why, Steps, Example and Key takeaway.
Almost all expect versioned JSON APIs, nouns as URLs, and correct verbs and statuses.
Open the full page for Why, Steps, Example and Key takeaway.
The key identifies a client intent.
Open the full page for Why, Steps, Example and Key takeaway.