Source code for EqualsExample2.java:

public class EqualsExample2
{
	public static void main(String args[])
	{
		// EqualsExample2
		int x = 10;
		System.out.println(x == 11);
	}
}

Output from EqualsExample2.java:

false

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the EqualsExample2 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