Java char type Question 1

Question

What is the output of the following code?

public class Main {
   public static void main(String[] argv) throws Exception {
      int i =  '1'; 
      System.out.println(i);//from   w ww. j a  v a 2  s  .com
      
      int j =  '1' +  '2' * ('4' - '3') + 'b' / 'a' ;
      System.out.println(j);
      
      
      int k =  'a';
      System.out.println(k);
      
      char c = 90; 
      System.out.println(c);
   }
}


49
100
97
Z



PreviousNext

Related