hi ,
class JSC201 {
static byte m1() {
final char c1 = '\u0001';
return c1; // 1
}
static byte m2(final char c2) {return c2;} // 2
public static void main(
String[] args) {
char c3 = '\u0003';
System.out.print(""+m1()+m2(c3)); // 3
}}
i understand why i'm getting the error on line no 2 cause the found return value is character and the return type is byte
but shouldn't i get the complile time error at line 1 also cause it is also
returning the character value even though the return type is byte....
[ September 05, 2007: Message edited by: deeksha mehra ]