Question 49. (单选)
Each method in a class must have a unique name.
1. FALSE
2. TRUE
Question 50. (单选)
When an instance of a class, or object, is specified as a parameter to a method, a reference to the said object is passed to the method.
1. FALSE
2. TRUE
Question 51. (单选)
All interface methods must be declared as public when implemented in a class.
1. FALSE
2. TRUE
Question 52. (单选)
Which of the following exPssions will produce errors upon compilation?
(A) boolean a = (boolean) 1;
(B) boolean b = (false && true);
(C) float y = 22.3; (D) int x = (25 | 125)
1. (A) & (C)
2. (A)
3. (A), (C) & (D)
4. (A), (B) & (D)
Question 53. (单选)
Which lines of the following will produce an error?
1. byte a1 = 2, a2 = 4, a3;
2. short s = 16;
3. a2 = s;
4. a3 = a1 * a2;
1. Line 3 and Line 4
2. Line 1 only
3. Line 3 only
4. Line 4 only
5. Line 1 and Line 4
Question 54. (单选)
Which keyword can protect a class in a package from accessibility by the classes outside the package?
1. don’t use any keyword at all (make it default)
2. private
3. protected
4. final
Question 55. (单选)
Which of the following statements are valid array declaration?
(A) int number();
(B) float average[];
(C) double[] marks;
(D) counter int[];
1. (B) & (C)
2. (A)
3. (A) & (C)
4. (D)
友情提示:阅读了本文“阿里巴巴技术类笔试真题”,本站高考知识网()笔试频道,还为你提供更多“笔试题目”相关文章阅读
钟山职业技术学院计算机应用技术专业怎么样?录取分数线..
时间:2024-06-08 08:35:12甘肃上重庆三峡职业学院多少分 分数线及排名
时间:2024-06-08 08:32:53武汉城市学院电子商务专业怎么样?录取分数线多少分
时间:2024-06-08 08:30:02内蒙古高考特殊类型提前批报考控制线是多少分
时间:2024-06-07 16:24:56西藏高考特殊类型提前批报考控制线是多少分
时间:2024-06-07 16:24:03青海高考特殊类型提前批报考控制线是多少分
时间:2024-06-07 16:23:14