Write down the output of the following:
a) int a =20;
System.out.println(a++);
System.out.println(++a);
a+=2;
System.out.println(a);
Answers
Answered by
1
Answer:
1 mark if correct reason
is given
Reason: Method sumUp does not return any
value. The change in the local variable total is
not visible outside the method.
Step-by-step explanation:
mark me as brainlist
Similar questions