• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Synchronized keyword

 
Sanjeev BhimaRao
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a synchronized keyword be applied only to methods?

Can a .java file have multiple private/protected classes?

 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try it out, see what happens. That's the best approach when you don't know what is possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic