Re: synchronized class
- From: Chris Smith <cdsmith@xxxxxxx>
- Date: Tue, 31 Jan 2006 10:18:48 -0700
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
.
- References:
- synchronized class
- From: John Goche
- synchronized class
- Prev by Date: Re: What IDE for Java do you use?
- Next by Date: URL file chooser
- Previous by thread: synchronized class
- Next by thread: Re: synchronized class
- Index(es):