Use atomic classes like AtomicInteger for thread-safe operations without synchronization.
Source Code
AtomicInteger atomicInteger = new AtomicInteger(0);
atomicInteger.incrementAndGet(); // Atomically increments by one
System.out.println(atomicInteger.get()); // Outputs: 1