62,614
社区成员
发帖
与我相关
我的任务
分享
public class Student {
public static void main(String[] args)
{
//int age; 此行编译时报错
Student stu = new Student();
System.out.println(stu.stuAge);//此行编译通过,stuAge取默认初始值0
}
int stuAge;
}