In the code below I am trying to convert char to int. Then I want to print the value of b, but I am getting 155 as output.
public class Maths {
static int age = 39, age2 = 49;
public static void main(String Args[]) {
int a = 's';
int b = a;
System.out.println(a);
System.out.println(b);
}
}
See Question&Answers more detail:os