Wednesday, 28 October 2009

Are static method thread safety?

Static method is thread safety only if it does not modify external variables. And it should be fine if there is no static variables in this class since static method can not use any non-static variables of a class. You do not need worry about local variables inside this static method.
Static method is useful because it could be called without creating a new instance of a class.

First post

Thanks to Takashi, Thura. I got a new blog.