Answer Posted / Mamta Singh
A singleton object in Scala is an object that ensures only one instance of that object can exist at any given time. It is created by marking the class as final and providing a private constructor, with a public companion object that contains an instance of the class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers