aspose file tools
The moose likes Threads and Synchronization and the fly likes JAVA API's Thread Safe? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "JAVA API Watch "JAVA API New topic

JAVA API's Thread Safe?

noel angel
Ranch Hand

Joined: Oct 27, 2002
Posts: 75
Hi all,
Is it safe to assume that JAVA API's are thread safe?
JAXP for example, are any of the stabdard api's not thread safe?
David Weitzman
Ranch Hand

Joined: Jul 27, 2001
Posts: 1365
Most standard libraries (or third party libraries for that matter) are not thread safe. Any library which is threadsafe will almost certainly state that fact explicitly in its javadocs.
It is sorta covered in the JavaRanch Style Guide.
subject: JAVA API's Thread Safe?