Read the following program: public class test { public static void main(String [] args) { int x = 3; int y = 1; if (x = y) System.out.println("Not equal"); else System.out.println("Equal"); } } What is the result?
The output is “Equal”
The output in “Not Equal”
An error at " if (x = y)" causes compilation to fall.
The program executes but no output is show on console.