The value of k is 0 when I run the following code:
public class Main {
    public static void main(String[] args) {
        A.Inner1 inner1_2 = new A.Inner1();
        System.out.println(inner1_2.getK());
    }
}
class A{
    private int j;
    public static class Inner1{
        private static int k;
        public int getK() {
            System.out.println("value:" + k);
            return k;
        }
        public void setK(int k) {
            this.k = k;
        }
    }
}
value:0
0
Jdk 1.8_181
This my comlier error or jvm error? I couldn't find an answer
 
     
     
    