A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Don't you get a deadlock in this example?
why this error
if synchronized keyword was not there in java how to implement it
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015