Wednesday, 7 January 2015

public class akarsh11 {
int a;
double b;
char c;
float d;
boolean e;
public static void main(String[] args) {
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
System.out.println(e);

}

}

output:Cannot make a static reference to the non-static field

No comments:

Post a Comment