This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

primitive Storage  RSS feed

 
karimkhan pathan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

where will the memory allocation for a primitive values ?

The objects memory is in the heap !

Thanks,
karim.
 
Campbell Ritchie
Marshal
Posts: 55690
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java™ Language Specification: look at §4.2 and §4.2.3. Remember: 8 bits = 1 byte.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!