Answers for "prevent creating instance of singleton from thread"

0

prevent creating instance of singleton from thread

// for java
// ** use 'synchronized' keyword in function declaration

public static synchronized Database getInstance(){...}
Posted by: Guest on June-20-2021

Code answers related to "prevent creating instance of singleton from thread"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language