This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is static inner class thread safe?" Watch "Is static inner class thread safe?" New topic

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:

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: 15302

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Is static inner class thread safe?
It's not a secret anymore!