What will be the output of the program?


			  		

Loading

Choose the correct option.

What will be the output of the program?

class Equals  {     
public static void main(String [] args) {
int x = 100;
double y = 100.1;
boolean b = (x = y); /* Line 7 */
System.out.println(b);
}
}

 

A. TRUE
B. FALSE
C. compilation fails
D. An exception is thrown at runtime

Leave a Comment