[Solved] Are all immutable objects singleton instances? [closed]


No.

Immutable objects are unchangeable, the normal practice for these is to pass (inject) all required values via the constructor (i.e. they are specified when the object is instantiated), these are then externally unchangeable for the lifetime of the object.

Singleton objects are when there is a single instance, that instance could be immutable but seldom is.

2

solved Are all immutable objects singleton instances? [closed]