synchronized code

By Krishnamoorthy Sethuraman

synchronization possible on objects only and not on primitives

int x;

synchronized(x) will be compiler error. No autoboxing here…

Leave a Reply