public class ORExample
{
public static void main(String args[])
{
// ORExample
boolean x = true;
boolean y = false;
boolean z = x || y;
System.out.println(z);
}
}
Output from ORExample.java:
true
--- Output Ends ---
NOTE:
You are reading previously generated output. You are not currently running
the ORExample application at the momement. You need to compile and run the
source code first.
To run this program:
javac ORExample.java
java ORExample
Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR