black

登录

单项选择题

Given the class declaration below, what expression can be used to fill in the blank to return the size variable defined in the Bottle class, printing 14 at runtime? package baby; final public class Bottle { final private int size = 14; final protected class Insert { private final int size = 25; public final int getSize() { return ____________________; } } final Insert insert = new Insert(); final public static void main(String[] feed) { System.out.print(new Bottle().insert.getSize()); } }
A、Bottle.this.size
B、this.size
C、this.Bottle.size
D、The code does not compile, regardless of what is placed in the blank.

A.out.print(new
B.insert.getSize());
C.this.size
D.size
E.Bottle.size
相关考题

单项选择题 为减少话外音的影响有什么有效的方法()

单项选择题 下列损失中,属于直接损失的有

单项选择题 综治保卫重点部位有()

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064