0
Why jvm doesn't allow me to do calc between a static and a non static variable.
like this static int i=0; int a; a=++i; error occurs when executed. what is the problem because of which jvm doesn't allow me to do this.
1 Odpowiedź
+ 13
Same reason as here:
https://www.sololearn.com/Discuss/276965/?ref=app
You don't need static in your example. Leave it out.