public class vote
{
static int i;
int g=100;
int p=100;
public void lapore(float f)
{
f=0.0f;
float i=(g)+(g++)+(-g/f)+(12);
System.out.println(" "+i);
}
public static void main(
String[]args)
{
long i=10l;
vote v=new vote();
v.lapore(i);
}
}
Hello expert's
In the above given code, i would like to know that in line number 4 i have initialized varaible g with 100 then in line number 9 i have put the negative sign in front of the variable g.My question is,why did not the compile show any error?.Pleas throw some light on it.