A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Programmer Certification (SCJP/OCPJP)
Joined: Jul 17, 2006
Apr 08, 2012 01:13:52
Can a synchronized keyword be applied only to methods?
Can a .java file have multiple private/protected classes?
Joined: Apr 06, 2010
Apr 08, 2012 04:54:16
Try it out, see what happens. That's the best approach when you don't know what is possible.
I agree. Here's the link:
subject: Synchronized keyword
if synchronized keyword was not there in java how to implement it
why this error
Don't you get a deadlock in this example?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014