This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 15299
    
    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
 
 
subject: Is static inner class thread safe?
 
Similar Threads
inner classses
Is static inner class thread safe?
Is static inner class thread safe?
Thread Safe Code
Inner Class Error