title: What is the default value of a basic Boolean in Swift?
body: <p>I want to know about <code>Bool</code> in Swift.</p>
  
  <p>If Bool is a basic primitive datatype, why is a Boolean's default value <code>nil</code>?</p>
  
  <pre><code>var test: Bool!
  print(test) // nil
  </code></pre>
  
  <p>In Java the Boolean default value is false:</p>
  
  <p><em><a href="https://stackoverflow.com/questions/6226290/default-value-of-boolean-in-java">Default value of &#39;boolean&#39; and &#39;Boolean&#39; in Java</a></em></p>