File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 666
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: 15286
    
    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 - A Test Data Generation Platform
 
 
subject: Is static inner class thread safe?
 
Similar Threads
Thread Safe Code
Is static inner class thread safe?
inner classses
Inner Class Error
Is static inner class thread safe?