I have not written a line of Java in 15 years. But im pretty sure Java has threads? Once you have threads, you pretty much have data races.
Thread a = new Thread(() -> x++);
Thread b = new Thread(() -> x++);
a.start();
b.start();