πŸ“Š JAVA
Q. Find the output of the following code.
Code:
int ++a = 100;
System.out.println(++a);
  • (A) 101
  • (B) Compile error as ++a is not valid identifier
  • (C) 100
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (B) Compile error as ++a is not valid identifier

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
249
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mahesh Chandra
Publisher
πŸ“ˆ
91%
Success Rate