public class ANDExerciseExample1
{
public static void main(String args[])
{
// ANDExerciseExample1
boolean b1 = true; // Change as needed.
boolean b2 = false; // Change as needed.
if (b1 && b2)
System.out.println("Yes");
else
System.out.println("No");
}
}
No
--- Output Ends ---
- javac ANDExerciseExample1.java
- java ANDExerciseExample1