[OCAJP] 四則運算 2
What is the result? A. i:16 j:33 B. i:15 j:33 C. i:33 j:23 D. i:15 j:23
MagicLen · https://magiclen.org
本站也提供简体中文版。切换到简体中文版
分類
認證考試的考古題與模擬題解析,包含 Linux 認證(LPIC-1、LPIC-2)與 Java 認證(OCAJP、OCPJP),每一題都附上答案與詳細的解說。
共 888 篇文章
What is the result? A. i:16 j:33 B. i:15 j:33 C. i:33 j:23 D. i:15 j:23
Which two actions will improve the encapsulation of a class? A. Changing the access modifier of a field from public to private B. Removing the public modifier from a class declaration C. Changing the...
What is the result? A. 1.0, 1 B. 1.0f, 1 C. 7.33, 7 D. Compilation fails E. An exception is thrown at runtime
What is the result? A. true, false B. false, true C. true, true D. false, false
What is the result? A. 8 B. 9 C. 11 D. 10 E. Compilation fails
The protected modifier on a Field declaration within a public class means that the field ______________. A. Cannot be modified B. Can be read but not written from outside the class C. Can be read and...
Which code fragment, when inserted at line // insert code here, enables class Test to print 123 : Fred : [Java, C]? A. private Student(int i, String name, List cs) { /* initialization code goes here ...
The class is poorly encapsulated. You need to change the circle class to compute and return the area instead. Which two modifications are necessary to ensure that the class is being properly encapsul...
What is the result? A. 1 1 1 B. 1 2 3 C. 2 3 4 D. Compilation fails E. The loop executes infinite times
Given the following class declarations: public abstract class Animal public interface Hunter public class Cat extends Animal implements Hunter public class Tiger extends Cat Which answer fail...