title: Booleans in Java
body: <p>I am a beginner and started to learn the java language. I encountered a problem in the book about booleans. I don't know how to find the value of the questions and I was wondering if someone can give me a sample of how the code is supposed to look like. Help would really be appreciated. </p>
  
  <p>Question in the book: </p>
  
  <p>Suppose the value of b is false and the value of x is 0. What is the value of each of the following expressions</p>
  
  <p><strong>a)</strong> <code>b &amp;&amp; x == 0</code></p>
  
  <p><strong>b)</strong> <code>b || x == 0</code></p>
  
  <p><strong>c)</strong> <code>!b &amp;&amp; x == 0</code></p>
  
  <p><strong>d)</strong> <code>!b || x == 0</code></p>
  
  <p><strong>e)</strong> <code>b &amp;&amp; x != 0</code></p>
  
  <p><strong>f)</strong> <code>b || x != 0</code></p>
  
  <p><strong>g)</strong> <code>!b &amp;&amp; x != 0</code></p>
  
  <p><strong>h)</strong> <code>!b || x != 0</code></p>
  
  <p>I just don't know how I would execute this problem, help!
  Thanks </p>