The outcome of a relational operator is a boolean value.

In the following code, the System.out.println outputs the result of a relational operator.

public class Main {
  public static void main(String args[]) {
    // outcome of a relational operator is a boolean value
    System.out.println("10 > 9 is " + (10 > 9));
  }
}

The output generated by this program is shown here:


10 > 9 is true
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.