Hello,
please consider this:
public class As{
int i = 10;
char z= 10;
char c= i;
........
Why is it possible to say „char z=10“ but when I say char c = i (and i is also 10)
then there is a compile-time error:
C:\Java\EigeneJavaProgramme>javac As.java
As.java:5: possible loss of precision
found : int
required: char
char c= i;
^
1 error
(note: it is also possible to say „char z = 1587“