Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is static inner class thread safe?

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We know static variables are not thread safe. How about static inner class?
This is an example:
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question isn't really specific to the Servlet API so I am going to move it to our Java in General (Intermediate) forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic