首页
题库
网课
在线模考
桌面端
登录
搜标题
搜题干
搜选项
0
/ 200字
搜索
问答题
实例化Student对象s,将名字赋值为“张三”。
class Student{
int id;
String name;
public Student(){}
public Stdent(int id){
this.id=id;
}
public static void main(String[] args){
Student s=new Student();
; //将s对象的name属性赋值为“张三”,不用加分号
}
}
答案:
s.name="张三"
点击查看答案
在线练习
手机看题
你可能感兴趣的试题
判断题
常言道“老掉牙”,人老了,牙齿就应该掉,不应该还拥有好多颗自然牙齿。
答案:
错误
点击查看答案
手机看题
单项选择题
颈静脉孔位于颞骨与枕骨之间。
A. 对
B. 错
点击查看答案
手机看题
微信扫码免费搜题