Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:32:40+00:00 2026-06-13T14:32:40+00:00

I noticed this thing: my class has boolean member and at some run-point I

  • 0

I noticed this thing: my class has boolean member and at some run-point I see it’s value in debugger as null. But when I use the getter method, it returns false.

I know, most books tell you that boolean in Java has only two values, unlike C/C++ in which every non-zero number can be interpreted as true. So I wonder, what’s happening in there?

Are there any other situations when some value of other type or null can be interpreted as false? Perhaps explanation of this is somewhere in JLS, could someone point me to it?

EDIT: Indeed yesterday was a bad day for debugging. First i wasted 4 hours to find a source of a bug which disapeared when i reversed source and made same changes again. Then this. I just tried to reproduce and couldn’t. Was it galucination or it’s just monday is a hard day? I don’t know. Thanks everyone for your responses! I guess you can vote to close or delete this question now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:32:41+00:00Added an answer on June 13, 2026 at 2:32 pm

    It sounds like the field is declared as the nullable, wrapper type Boolean instead of a boolean primitive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just noticed this following , relatively new thing on Facebook, when you upload
why some thing like this url=http:/+www.pathname.com+/+anotherString; turns into http://www.pathname.com/anotherString . Notice the // after
I noticed This question , but my question is a bit more specific. Is
Stackoverflow has a nifty badge system. One thing I noticed is that badges are
I noticed that the Activity class has a setContentView method where an xml resource
Has anyone noticed this behavior before? This really threw me off... I would have
Edit: Hmm this is interested. I just noticed, my signup route is /signup. But,
This one has been throwing me so I figured I'd ask for some help.
Noticed this today when a patch was submitted with the following line: lblCompletionTime.Text =
I noticed this site http://aspnetwebstack.codeplex.com/ . Is web forms source available?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.