为什么我在eclipse可以运行,在浏览器提交不能运行

这个什么意思

img

img


package ai1;

public class Practice6 {

public static void main(String[] args) {
    // TODO Auto-generated method stub
    Student student=new Student("溪苏",18);
    student.show();
    UnderGradute underGraduate=new UnderGradute("1",19,"benke");

}

}
class Student{
String name;
int age;
public Student(String name, int age) {
super();
this.name = name;
this.age = age;
}
public void show() {
System.out.println("我的名字是"+name+"年龄"+age);
}
}
class UnderGradute extends Student{
String degree;
public UnderGradute(String name, int age, String degree) {
super(name, age);
this.degree = degree;
}
public void show() {
System.out.print("我的名字是"+name+"年龄"+age+"学位是"+"degree");
}
}