Q. consider the following program
public class
Test { public static void main(
String args[])
{boolean a = false ; if(a=true)
System.out.println("Hello");
Else
System.out.println("Goodbye");
}
}
what is the result
A. A program produce no output terminate correctly.
B. program does not terminate.
C. prints out "Hello".
D. prints out "Goodbye".
select the most appropriate answer.
Answer is c
my confusion is the the program contains an error Else,will compiler not report about that error
thanx
kuldeep