I am a beginner to java. Today, I was watching the tutorial and I got to know that we can assign integer value to char datatype like:
char a = 65;
and when we print
System.out.print(a);
Then, it will give us character value.
A
Why is it?
I have read that implicit type conversion is also known as widening. But char type is smaller in size than int. Then, why the conversion?