Computer Science, asked by rpriya1224, 8 months ago

what will be the output of given code. int m=8;m*=8; system.out.println(m);​

Answers

Answered by Anonymous
9

Output : 64

because m*= 8 means m = m * 8

Answered by AskewTronics
2

Compile time error:

Explanation:

  • The above code gives the compile-time error because the "s" is not capital in "system.out.println" which needs to be capital because the system is the name of a class and the first letter of the class name must be capital in java language.
  • When the user fixes the above error, then the above code will give the output as "64". It is because "m*=8" multiply the 'm' variable value by 8 which will become 64.

Learn more:

  • Java : https://brainly.in/question/13792074
Similar questions