title: Is it good practice to use assert in Java?
body: <p>I know that the keyword <code>assert</code> exists in java. However I don't remember seeing code that uses it. Probably I am using exceptions and logging in places where I could have used it. Is it a good practice to use the <code>assert</code> keyword in java?  </p>
  
  <p><strong>EDIT</strong>: I know that assertions in general is a good practice. my question is, to be more accurate, if in java the BKM of assertion is using the <code>assert</code> keyword rather than using exception, logging and other techniques.</p>