title: Kotlin Memory allocation behaviour for object class and companion object
body: <p>Kotlin provide a better way to create singleton object and companion object to access class member via class name. Cool this is !!</p>
  
  <p>But how the memory allocation work for both declaration, does this same work like static in java and remain retain till application lifecycle.</p>
  
  <p>I have gone through couple of resource like <strong><a href="https://www.reddit.com/r/Kotlin/comments/5tkztz/companion_objects_are_real_objects_too/" rel="nofollow noreferrer">this</a></strong> and <strong><a href="https://blog.indoorway.com/swift-vs-kotlin-the-differences-in-memory-management-860828edf8" rel="nofollow noreferrer">this</a></strong>, but it did not helped me much. Any guideline !!</p>