Java - char type int value literal

What is char type int literal?

You can assign an int literal to a char variable as long as the int literal's value falls in the range 0-65535.

When assigning an int literal to a char variable, the char variable represents the character whose Unicode code is equal to the value represented by that int literal.

char c1 = 97; 

Demo

public class Main {
  public static void main(String[] args) {
    char c1 = 97; 

    System.out.println(c1);/*w  w  w.  ja  v  a 2 s .  c  o  m*/
  }
}

Result

Exercise