电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

2025年SCJP认证试题及答案

2025年SCJP认证试题及答案_第1页
1/72
2025年SCJP认证试题及答案_第2页
2/72
2025年SCJP认证试题及答案_第3页
3/72
转载 对题目和答案谨做参照Q1 A method is ... 1) an implementation of an abstraction. 2) an attribute defining the property of a particular abstraction. 3) a category of objects. 4) an operation defining the behavior for a particular abstraction. 5) a blueprint for making operations. Q2 An object is ... 1) what classes are instantiated from. 2) an instance of a class. 3) a blueprint for creating concrete realization of abstractions. 4) a reference to an attribute. 5) a variable. Q3 Which line contains a constructor in this class definition? public class Counter { // (1) int current, step; public Counter(int startValue, int stepValue) { // (2) set(startValue); setStepValue(stepValue); } public int get() { return current; } // (3) public void set(int value) { current = value; } // (4) public void setStepValue(int stepValue) { step = stepValue; } // (5) } 1) Code marked with (1) is a constructor 2) Code marked with (2) is a constructor 3) Code marked with (3) is a constructor 4) Code marked with (4) is a constructor 5) Code marked with (5) is a Constructor Q4 Given that Thing is a class, how many objects and reference variables are created by the following code? Thing item, stuff; item = new Thing(); Thing entity = new Thing(); 1) One object is created 2) Two objects are created 3) Three objects are created 4) One reference variable is created 5) Two reference variables are created 6) Three reference variables are created. Q5 An instance member… 1) is also called a static member 2) is always a variable 3) is never a method 4) belongs to a single instance, not to the class as a whole 5) always represents an operation Q6 How do objects pass messages in Java? 1) They pass messages...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

2025年SCJP认证试题及答案

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部