Java char type Question 3

Question

What is the output of the following code?

public class Main {
   public static void main(String[] args) {
      System.out.println('a' < 'b');
      System.out.println('a' <= 'A');
      System.out.println('a' > 'b');
      System.out.println('a' >= 'A');
      System.out.println('a' == 'a');
      System.out.println('a' != 'b');

   }/*from w ww.java2  s.  com*/
}


true
false
false
true
true
true



PreviousNext

Related