class CharTest
{
   public static void main(String args[])
   {
      char ch = 'A';
      char ch2 = 'B';
      int x;
      byte y;
      int z;

      x = (int) ch;
      y = (byte) ch;
      System.out.println("Ch=" + ch +  "  x=" + x + "  y=" + y+
             "  " + Integer.toBinaryString(x) + "  " +
                   Integer.toBinaryString(y));
      z =  x | (int) ch2;
      System.out.println("z="+ z + "  " + Integer.toBinaryString(z));
   }
}