Question related to static
Good morning!
i would like to ask you sthg related to static variables :
package1;
import java.io.*;
public class hello {
int n;
static int k;
public hello1() {
n++;
}
public hello2() {
k++;
}
}
What抯 the difference between the package variable n and the static variable k?
Also,What's the difference between static and non-static methods/classes?
Thanks,in advance!

