MagicLen

分类

主要文章 - 第 137 页

MagicLen 的主要文章,分成「科学与科技」和「社会与生活」两大类。前者以编程、操作系统、网络与软硬件的教学和心得为主,后者包含语言学习、创作、旅游、开箱与各种生活主题,另外还有本站公告。

共 1660 篇文章

[OCAJP] 数值转型

What is the result? A. Sum is 600 B. Compilation fails at line n1. C. Compilation fails at line n2. D. A ClassCastException is thrown at line n1. E. A ClassCastException is thrown at line n2.

[OCAJP] 继承关系

Which two options fail to compile when placed at line n1 of the main method? A. employee.salary = 50_000; B. director.salary = 80_000; C. employee.budget = 200_000; D. manager.budget = 1_000_000; E. ...

[OCAJP] 构造器 2

Which code fragment should you use at line n1 to instantiate the dvd object successfully? A. super.r = r; this.c = c; B. super(r); this(c); C. super(r); this.c = c; D. this.c = r; super(c);

[OCAJP] 玩具商店

You are asked to develop a program for a shopping application, and you are given the following information. Which definition of the Toy class adds a valid layer of abstraction to the class hierarchy?