It attempts lock without blocking. Frame the concept in practical terms so you can explain it during interview discussion.
tryLock allows a thread to attempt to obtain a lock without blocking indefinitely. This is useful in scenarios where a thread should not be stuck waiting, such as concurrent updates during a flash sale.
Additional Notes
How does tryLock differ from lock in ReentrantLock?