[OCAJP] 泛型
What is the output? A. [21, 13, 11] B. [30] C. [] D. Compilation fails due to error at line 7 E. Compilation tails due to error at line 10
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
分类
编程的教学与经验分享,涵盖 Rust、Java、JavaScript、Go、C/C++ 等编程语言的入门教学、范例程序与实务技巧,以及算法、App 开发与开发工具的用法。
共 635 篇文章
What is the output? A. [21, 13, 11] B. [30] C. [] D. Compilation fails due to error at line 7 E. Compilation tails due to error at line 10
What is the result? A. 11, 21, 31, 11, 21, 31 B. 11, 21, 31, 12, 22, 32 C. 12, 22, 32, 12, 22, 32 D. 10, 20, 30, 10, 20, 30
What is the result? A. int sum is 30 float sum is 30.0 B. int sum is 30 double sum is 30.0 C. Integer sum is 30 double sum is 30.0 D. Integer sum is 30 float sum is 30.0
What is the result? A. Base DerivedA B. Base DerivedB C. DerivedB DerivedB D. DerivedB DerivedA E. A classcast Except ion is thrown at runtime.
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?
Which three statements describe the object-oriented features of the Java language? A. Objects cannot be reused. B. A subclass can inherit from a superclass. C. Objects can share behaviors with other ...
Which two modifications should you make so that the code compiles successfully?
What is the result? A. Element 0 Element 1 B. Null element 0 Null element 1 C. Null Null D. A NullPointerException is thrown at runtime.
Which of the following data types will allow the following code snippet to compile? A. long B. double C. int D. float E. byte
What would be the output, if it is executed as a program? A. name =, pass = B. name = null, pass = null C. name = null, pass = false D. name = null pass = true E. Compile error.