synchronization possible on objects only and not on primitives
int x;
synchronized(x) will be compiler error. No autoboxing here…
synchronization possible on objects only and not on primitives
int x;
synchronized(x) will be compiler error. No autoboxing here…