Image

Programs - Java - Core Java - Static

Program:


class Class1
{
int i;
int j;
void show()
{
System.out.println(i);
System.out.println(j);
}
public static void main(String args[])
{
Class1 c=new Class1();
c.show();
}
}