πŸ“Š JAVA
Q. What is the output of the Java code snippet?
Code:
int a=10, b=20;
int c = a++*2;
int d = --b*2;
System.out.println(c +"," + d);
  • (A) 20,40
  • (B) 22,40
  • (C) 20,38
  • (D) 22,38
πŸ’¬ Discuss
βœ… Correct Answer: (C) 20,38

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
215
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
84%
Success Rate