✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Soit la classe suivante :
public final class Singleton {
private static Singleton instance;
private String value;
private Singleton(String value) {
this.value = value;
}
public static Singleton getInstance(String value) {
if (instance == null) {
instance = new Singleton(value);
}
return instance;
}
}
Quelles affirmations sont vraies ?