wood burning stoves 2.0*
The moose likes Servlets and the fly likes Is static inner class thread safe? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is static inner class thread safe?" Watch "Is static inner class thread safe?" New topic
Author

Is static inner class thread safe?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
We know static variables are not thread safe. How about static inner class?
This is an example:


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

This question isn't really specific to the Servlet API so I am going to move it to our Java in General (Intermediate) forum.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is static inner class thread safe?