# Objects in Kotlin: Create safe singletons in one line of code (KAD 27)

DevFeed: [Objects in Kotlin: Create safe singletons in one line of code (KAD 27)](<https://devfeed.tech/articles/objects-in-kotlin-create-safe-singletons-in-one-line-of-code-kad-27-27211.md>)

Original publisher: [Read original article](<https://antonioleiva.com/objects-kotlin>)

Published: 2017-06-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

## AI overview

A tutorial on Kotlin object declarations, singleton behavior, companion objects, lazy instantiation, and object expressions, with comparisons to Java singleton patterns and notes about Android class instantiation.

## Source excerpt

Everything Android, Kotlin and other random topics