Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Static variables must store ?

 
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
 
Eurig Jones
Ranch Hand
Posts: 57
  • 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