class example
{
public static void main(
String args[])
{
static int h = 8;
System.out.println(h);
}
}
When I compile this program, it gives an comilation error:
Statement expected : static int h = 8;
Identifier expected: System.out.println(h);
Can anyone please explain this?
Thankx
Shilpa Jain