欢迎来到PP题库网 PP题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

class Super { 
public int getLenght() { return 4; } 
} 
public class Sub extends Super { 
public long getLenght() { return 5; } 
public static void main(String[] args) { 
Super sooper = new Super(); 
Sub sub = new Sub(); 
System.out.println( 
sooper.getLenght() + “,” + sub.getLenght() ); 
} 
}
What is the output?()

    A. Just after line 13.
    B. Just after line 14.
    C. Just after line 15.
    D. Just after line 16 (that is, as the method returns).

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题