Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properties class

 
Suresh Appagundi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Properties methods synchronized? like Hashtable.

thanks
Suresh Appagundi
 
Joe Ess
Bartender
Pie
Posts: 9258
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Properties extends Hashtable, so any method that Properties doesn't override would be synchronized. You could also look at the source (check your SDK directory for a src.zip file) and see that many Properties methods, like setProperty() and load(), are synchronized.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic