Question: You coded the following in your java class. int a = 5; a =+ 3; System.out.println(The value of a is + a ); The code
You coded the following in your java class. int a = 5; a =+ 3; System.out.println("The value of a is" + a ); The code compiles properly and runs, but the result is not what you expected. The output is The value of a is 3 You expected the value of a to be 8. Explain what the problem is and how to fix it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
