Predict the output. class Main { public static void main(String[] args) { int a = 8; System.out.println(a++ * 3); } }
Answers
Answered by
5
Answer:
36
Explanation:
a++ is post increment, therefore it will get changed in the memory location but while evaluating the expression "a" will remain 8.
Similar questions
Computer Science,
11 days ago
Hindi,
21 days ago
English,
9 months ago
History,
9 months ago
English,
9 months ago