if a long variable is declared as :-
private volatile long counter = 0;
now if i increment it using pre-increment operator, then would the o
The pre-increment operator is not atomic. Also, incrementing a volatile long is likely to be less efficient than using AtomicLong on almost all platforms, because the latter is supported by hardware.
volatile long
AtomicLong