Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • 2
    It is worth noting that generics will mean the static belongs to the type with the generic argument taken into account also. Commented May 24, 2012 at 8:59
  • @AdamHouldsworth - True. A static defined on a generic type will be shared between instances of the closed constructed generic type. Commented May 24, 2012 at 9:01
  • 1
    unclear downvote, by the way, may be more correct would be to say: "static belongs to a type". Commented May 24, 2012 at 9:07
  • @KamilLach - so long as they are not decorated as ThreadStatic. Commented May 24, 2012 at 9:08
  • @Oded They could have been instance variable of a class. See my edit Commented May 24, 2012 at 9:10