Source code for ANDExample.java:

public class ANDExample
{
	public static void main(String args[])
	{
		// ANDExample
		boolean x = true;
		boolean y = false;
		boolean z = x && y;
		System.out.println(z);
	}
}

Output from ANDExample.java:

false

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the ANDExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR