以下代码线程是否安全?
public static Entity getInstance(){ //the constructor below is a default one. return new Entity(); }
java
java ×1