# Singleton in Kotlin

DevFeed: [Singleton in Kotlin](<https://devfeed.tech/articles/singleton-in-kotlin-25152.md>)

Original publisher: [Read original article](<https://blog.droidchef.dev/how-to-create-singleton-in-kotlin/>)

Author: Ishan Khanna

Published: 2022-07-30T22:11:16Z

Content type: tutorial

Language: en

Sources: [Ishan Khanna](<https://devfeed.tech/sources/ishan-khanna.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Code](<https://devfeed.tech/topics/code.md>), [Inheritance](<https://devfeed.tech/topics/inheritance.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [create](<https://devfeed.tech/tags/create.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [object](<https://devfeed.tech/tags/object.md>), [tips](<https://devfeed.tech/tags/tips.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

A tutorial explaining what a singleton is in Kotlin, how to create one with the object keyword or a companion object, when singletons may be useful, and guidelines for keeping them focused and avoiding unnecessary use.

## Source excerpt

In this tutorial, Ishan Khanna teaches how to create singleton in kotlin. When to use singleton in kotlin and tips for creating effective and efficient singleton class in kotlin.