---
title: "Comment by Kaouther Mefteh on \"Kotlin: lateinit vs lazy\" | Hashnode"
description: "Hi there, thanks a lot this is very useful :) small note is lateinit does not work with primitive types, means this line lateinit var age: Int is not correct. o"
url: "https://hashnode.com/posts/kotlin-lateinit-vs-lazy/64a50c2057c9282906b40238/comment/657ab9144250ac781a30f3fd"
---

[Discussion](https://hashnode.com/posts/kotlin-lateinit-vs-lazy/64a50c2057c9282906b40238)

Comment [Kotlin: lateinit vs lazy](https://hashnode.com/posts/kotlin-lateinit-vs-lazy/64a50c2057c9282906b40238)

[Kaouther Mefteh](https://hashnode.com/@KaoutherM)

[Dec 14, 2023](https://hashnode.com/posts/kotlin-lateinit-vs-lazy/64a50c2057c9282906b40238/comment/657ab9144250ac781a30f3fd)

Hi there, thanks a lot this is very useful :) small note is lateinit does not work with primitive types, means this line lateinit var age: Int is not correct. on the other hand primitive types are used with lazy delegates

[Romman Sabbir](https://hashnode.com/@rommansabbir)

[Dec 14, 2023](https://hashnode.com/posts/kotlin-lateinit-vs-lazy/64a50c2057c9282906b40238/comment/657ab9144250ac781a30f3fd#reply-657b1c6976f2f92c7f5a7e5d)

Thanks for the correction. Yes, you are right. lateinit cannot be used with primitive types. lateinit is designed for non-nullable types, and since primitive types like Int cannot be null, using lateinit with them is not allowed.
