I came across this question in one of the mock exams
I was really surprised about the answer they have given
Is this the way , questions will be in SCJP1.4?
class TestLevel{
public static void main(
String a[]){
int i=0;
int y=i;
}
}
Choices ( choose any 1 )
1. Compile time error
2. Runtime Error
3. Compiles with warnings.
4. Compiles without warnings.
5. None of these
I choosed answer 4
But on final result it said the answer is 5 ...
I agree answer 5 is also right.
But why not 4 ?