Following is the program for which i needed the explanation,as iam new to java.
class stat{
static int x=5;
int z=5;
final int y=6;
public static void main(string arg[]){
stat s= new stat();
s.x=7;
s.z=9;
s.y=8;
system.out.println(s.x);
system.out.println(stat.x);
system.out.println(stat.z);
system.out.println(s.z);
can somebody explain the output of this.
thanks
srini