Question: $$ begin{array}{1} text { 1. Find out the error of the following code and correct it. } begin{array}{1} text { class Equals } W left{begin{array}{1}

$$ \begin{array}{1} \text { 1. Find out the error of the following code and correct it. }\ \begin{array}{1} \text { class Equals } W \left\{\begin{array}{1} \text { public static void main(String [] args)} W { \text { int } \mathrm{x}=100; \text { double } \mathrm{y}=100.1 ; \ \text { boolean } \mathrm{b}=(\mathrm{x}=\mathrm{y}); / * \text { Line } 7 */ W \text { System.out.println(b); } \end{array} ight. W U} \quad\} \quad \end{array \end{array} $$ CS. JG. 18
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
