Hi,
And why if I will give a char as parameter it will not be promoted to an int?
See the following lines:
public class TestChar
{
static void m(int i)
{
System.out.println("OK, a received an int!");
}
public static void main(String args[])
{
char
test = 'a';
m(3);
m(test);
}
}
In this case the char is converted to an int.
Why in the case I was talking about the things are not the same?
Thanks.
..Cristian