S

Shivam • 8.86K Points
Tutor III

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

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.