what will be the output of given code. int m=8;m*=8; system.out.println(m);
Answers
Answered by
9
Output : 64
because m*= 8 means m = m * 8
Answered by
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
Math,
5 months ago
Computer Science,
5 months ago
English,
5 months ago
English,
11 months ago
Math,
11 months ago