Answer Posted / ravi
Make the constructor private
provide a static synchronized method to get the Instance.
this should make the object singleton for that jvm instance
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Is mvc a software design pattern?
What is synchronizer token pattern?
What are the disadvantages of singleton pattern?
what is the lazy design pattern?
Which design patterns have you used in your project ?
What is use case in clean architecture?
What is factory method in design pattern?
What are the design patterns you know explain?
What is the behavioral design pattern?
Is singleton bean thread safe?
Describe the builder design pattern
What is single tone design pattern in java?
Can we make the reference instance non static?
Shall we use abstract classes or interfaces in policy / strategy design pattern?
What is the prototype design pattern?