How do you implement singleton class?
Answer / Manish Kumar Prabhakar
"To implement a singleton class in Java, you can use the following techniques: 1. Eager Initialization (static block), 2. Lazy Initialization with double-checked locking, 3. Lazy Initialization using Enum, and 4. Bill Pugh Singleton."
| Is This Answer Correct ? | 0 Yes | 0 No |
Is java call by reference?
Can vector have duplicates in java?
Explain difference between final, finally and finalize?
what is difference between Action messages and Action errors?
Can I uninstall java?
What sorting algorithm does javascript use?
Why webdriver is an interface?
Is intellij better than eclipse?
Can we override the static method?
why we are calling j2se why not j1se or j3se or j4se..etc is there any reason.. can u please explain it... i shocked in my interview when they asked this question please explain ans
What is the need of transient variables in Java ?
solve (x-1)(x-9)=8;
3 Answers IBM, Manhattan, TCS,