I recently discovered that Java (and Scala) include non-short-circuiting logical operators &, |, and ^. I previously thought thes
If you are trying to track answers or input for something, and that depends on both sides of your non-short-circuit boolean running.
As an example, say you have:
if(methodA() & methodB()){
//some code
}
And within the methodB() method some essential code is running. If that was a short circuit code ( && ) and methodA() was false, methodB() would never run.
That is one of the uses I can think of, at least.