- 讲师:刘萍萍 / 谢楠
- 课时:160h
- 价格 4580 元
特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关
配套通关班送国网在线题库一套
question 45)
what will happen when you attempt to compile and run the following code?
public class sandys{private int court;public static void main(string argv){ sandys s = new sandys(99); system.out.println(s.court); }sandys(int ballcount){ court=ballcount; }}
2) compile time error, s is not initialized when the system.out method is called
4) compilation and run with an output of 99
question 46)
which of the following statements are true?
1) a method cannot be overloaded to be less public in a child class
3) to be overridden a method must have the same name, parameter and return types
question 47)
what will happen when you attempt to compile and run the following code?
class base{base(){ system.out.println("base"); }}public class checket extends base{public static void main(string argv){ checket c = new checket(); super(); }checket(){ system.out.println("checket"); } }1) compile time error
3) base followed by checket
责编:罗莉
上一篇:格林模拟试题三(下)(3)
下一篇:格林模拟试题三(下)(4)
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
课程专业名称 |
讲师 |
课时 |
查看课程 |
---|
点击加载更多评论>>