0

I went through many sites, but, could not find the answer to this question.

In C, The storage classes are auto, extern, static, register etc. What are the storage classes in Kotlin Programming language?

Any link or tutorial would be appreciable. Thank you.

1

1 Answer 1

2

Since Kotlin runs on the JVM, my guess would be that most things valid for java would also apply to Kotlin.

check the comments and replies here: related question on stackoverflow

roughly speaking: everything goes onto the heap, variables holding references to heap objects might be on the stack. And then, things like register are afaik not even possible in JVM languages (at least Java/Kotlin?). So the answer (assuming i got your question right) might be: Not available, not applicable, the JVM will take care of everything.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.