Re: synchronized class



John Goche <johngoche@xxxxxxxxx> wrote:
> I would like to know whether the "synchronized class" construct is
> valid in JDK 1.5 and whether it has any meaning at all in the context
> of multithreaded programming or whether the compiler will ignore it
> altogether. I have read some posts stating that "synchronized class"
> is not a legal way to begin a Java class definitions. Any comments
> on this would be sincerely appreciated.

Your question is answered in section 8.1.1 of the Java Language
Specification, third edition. The valid modifiers for a class are any
annotation, public, protected, private, abstract, static, final, or
strictfp. It is illegal to place the keyword "synchronized" in front of
a class.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.