• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is synchronised a modifier?indentifier??what is it??

 
senthil sen
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is synchronised a modifier?indentifier??what is it??
 
Prashant Neginahal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
certinaly it is not an identifier,i don'nt know about modifier(what is modifier? or Do u mean a variable?).
Rather it is a keyword. It synchronis(one by one) the access of a method or a block by the threads.
---------------------------
Sharing is better way of learning...
Prashant
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Language Specification refers to it as a Statement.
14.18 The synchronized Statement.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic