This below operation providing errors while i'm adding outside of the method,
the below mentioned code declared as instance variable,and i performed addition inside the class and outside the method,
int a=10; a=a+10;
if i add this inside method then there will be no compilation errors,why??
a = a+10is a statement.