格林模拟试题三(上)(5)
百度广告
which of the following statements are true?
1) constructors cannot have a visibility modifier
3) constructors can only have a primitive return type
question 16)
what will happen when you attempt to compile and run the following class?
class base{base(int i){ system.out.println("base"); }}class severn extends base{public static void main(string argv){ severn s = new severn(); }void severn(){ system.out.println("severn"); }}
1) compilation and output of the string "severn" at runtime
3) compilation and no output at runtime
question 17)
which of the following statements are true?
1) static methods do not have access to the implicit variable called this
3) a static method may not be overriden to be non-static
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>