Race condition in Java is a condition wherein two threads raise requests for similar resources to be allocated to execute. Race conditions occur while running two programs parallelly when multiple threads simultaneously request resource allocation.