By saying 'if a class can be synchronized...' if you meant if a class member i.e., a static member can be synchronized then the answer is Yes. You just need to acquire lock on the Class object of the associated Java class. Cheers, Rohit [ August 27, 2008: Message edited by: Bear Bibeault ]
The question "can class be synchronized" does not make sense. A block of code can synchronize on the class.. for example: synchronize(MyClass.class) so that the code associated with all instances of that class cannot be re-entrant in that block. You can also synchronize on a single instance such as synchronize(this) or synchronize(xyz) where xyz is an instance. Make sense?