0What is the output of the following code snippet?int x = 6; System.out.println(x++ + ++x);A12B14C11D13 Correct answer: B Explanationx++ gives 6 and makes x = 7. Then ++x makes x = 8 and gives 8. The sum is 6 + 8 = 14. Join the discussion Report an error Share