public static void main(String[] args) throws Exception {
System.out.println(isFalse() && isExceptional()); // false
System.out.println(isFalse() & isExceptional()); // RuntimeException("I'm exception");
}
static boolean isFalse() {
return false;
}
static boolean isExceptional() {
if (true) throw new RuntimeException("I'm exception");
return true;
}