MCQs > IT & Programming > Java > Output of the following program? class Upwork{ public static void main(String args[]) { int x , y; x = 10; x++; --x; y = x++; System.out.println(x + ' ' + y); } }

Java MCQs

What is the output of the following program? class Upwork{ public static void main(String args[]) { int x , y; x = 10; x++; --x; y = x++; System.out.println(x + " " + y); } }

Answer

Correct Answer: 11 10

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it