πŸ“Š JAVA
Q. what is the output of below java program?
Code:
public class MyClass {
public static void main(String[] args){
 int a = 10;
 System.out.println(++a++);
}
}
  • (A) 10
  • (B) 11
  • (C) 12
  • (D) Compilation Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compilation Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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