会计考友 发表于 2012-8-4 12:33:16

JAVA认证历年真题:310-025精选题(30)

310-025精选题(30)的具体内容如下:
105. What is the range of a byte?
A.-128-127
B.-32 768 - 32 767
C.-231 - 231 -1
D.-232 - 232 -1
A.
106. What is the range of a byte?
A.-27 - 27 -1
B.-2 15 - 215 -1
C.-231 - 231 -1
D.-263 - 263 -1
A.
107. What would be the result of attempting to compile and run the following piece of code?
public class Test {
public static void main (String args[]) {
int x[] = new int;
System.out.println("Value is " + x);
}
}
A. The output "Value is 0" is printed.
B. An object of type NullPointerException is thrown.
C. An "illegal array declaration syntax" compiler error occurs.
D. A "possible reference before assignment" compiler error occurs.
E. An object of type ArrayIndexOutOfBoundsException is thrown.
A.
108. Which interface should you use if you want no duplicates, no order and no particular retrieval system?
A. Map
B. Set
C. List
D. Collection
E. Enumeration
B.
109. Which are keywords in Java?
A. NULL
B. TRUE
C. sizeof
D. implements
E. synchronized
DE.
页: [1]
查看完整版本: JAVA认证历年真题:310-025精选题(30)