A

Admin • 802.91K Points
Coach

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

Code:
int ++a = 100 ;
System.out.println( ++a ) ;
  • (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
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.