Source code for EqualsExample1.java:

public class EqualsExample1
{
	public static void main(String args[])
	{
		// EqualsExample1
		System.out.println("The statement 2 == 4 is");
		System.out.println(2 == 4);
	}
}

Output from EqualsExample1.java:

The statement 2 == 4 is false

--- Output Ends ---

NOTE:

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