Programming Language Operator in Java Question #2125
Single Choice Not Set

Q
int ++a = 100 ; 
System.out.println( ++a ) ;
What will be the output of the above fraction of code ?

ID: #2125 Operator in Java 2,425 views
Question Info
#2125Q ID
Not SetDifficulty
Operator in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • 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

Explanation

Compiler displays error as ++a is not a valid identifier

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions