int ++a = 100 ;
System.out.println( ++a ) ;
What will be the output of the above fraction of 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
Answer: Option C
Identifier should only start with alpha character or with special characters such as _ and $
operator symbol is not allowed with variable therefore, it will give you compile time error
please explain that what will do to print?
As ++a is identifier(referance variable)....so according to java we cant declare referance variable using operator's symbol...
please give explination to this problem