I got this Qn from the site
www.examulator.com code
--------------------------------
interface Skeleton{
public char getSize(int iSize);
}
public class Huskisson implements Skeleton{
int iSize=99;
public static void main(String argv[]){
new Huskisson();
}
Huskisson(){
int iSize=1;
System.out.println(getSize(iSize));
}
public int getSize(int iSize){
return iSize;
}
}
------------------------------------------
The output is Compiler Error. I thought the output will be compilation with output 1.
Can somebody explain?