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

How java store the boolean value  RSS feed

 
Mohan Giramkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi all,

please tell me how boolean value store in java internallly.

regards,
Mohan
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Moving to Java In General (Beginner) forum.

This is a forum for Servlet questions only. Your post is off topic.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Oh, and it is stored on the stack, not the heap, and does not get garbage collected, meaning when the variable goes out of scope the memory is made available.

Mark
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this thread.

Please continue the duplicate thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!