Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Static variables must store ?  RSS feed

 
Anto Telvin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all i had read in a book that static variables lived inside the class .i want to know where this variables are get stored in stack or heap ?

thanks in advance
 
Ericson James
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static variables are stored in the Heap.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!