main方法调用方法外的属性

问题遇到的现象和发生背景
用代码块功能插入代码,请勿粘贴截图
我想要达到的结果

package oop.demon13;

public class Student {
private static int age;
private double score=22.43;

public static void main(String[] args) {
    Student a = new Student();
    a.score//为什么会报错
    System.out.println(a.score);//为什么没报错
}

}
怎么用main方法调用main方法作用域外的属性

int i = a.score; 不能写一个a.score;,你只写一个35;也报错呢