static method and thread safety

Posted by Anthos on Stack Overflow See other posts from Stack Overflow or by Anthos
Published on 2010-06-01T06:21:53Z Indexed on 2010/06/01 6:33 UTC
Read the original article Hit count: 114

Filed under:

Is the following code threadsafe ?

    public static Entity getInstance(){
//the constructor below is a default one.
     return new Entity();
    }

© Stack Overflow or respective owner

Related posts about java