Q. int ++a = 100 ;
System.out.println( ++a ) ;

What will be the output of the above fraction of code ?

  • (A) 100
  • (B) Displays error as ++a is not enclosed in double quotes in println statement
  • (C) Compiler displays error as ++a is not a valid identifier
  • (D) None of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) Compiler displays error as ++a is not a valid identifier

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
84%
Success Rate