Which two are true about Singletons?

Which two are true about Singletons?

Which two are true about Singletons?

A.
A Singleton must implement serializable.

B.
A Singleton has only the default constructor.

C.
A Singleton implements a factory method.

D.
A Singleton improves a class’s cohesion.

E.
Singletons can be designed to be thread-safe.

Explanation:



Leave a Reply 3

Your email address will not be published. Required fields are marked *


BKhateib

BKhateib

I think it should be BC in E singleton should be thread safe