Mega Code Archive

 
Categories / Java Book / 001 Language Basics
 

0038 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