When should you use the `volatile` keyword in Java?
Use `volatile` when you want to ensure that no other thread will ever read or modify the value of the variable.
Thatâ€™s incorrect. `volatile` allows threads to read and modify the value, but it ensures that all changes are visible to other threads immediately.
Can you explain what would happen if two threads modify the same `volatile` variable concurrently?