数组的下标超界将访问到未知的内存区域
A、对
B、错
相关问题推荐
-
如果想要一个类不能被任何类继承的话,需要使用哪个关键字来修饰该类?()
A、 abstract
B、 new
C、 static
D、 final
-
A developer is creating a class Book that needs to access class Paper.The Paper class is deployed in a JARnamedmyLib.jar.Whichthree,taken independently,will allow the developer to use the Paper class while compiling the Book class?()
AThe JAR fileis located at$JAVA_HOME/jre/classes/myLib.jar.
BThe JAR fileis located at$JAVA_HOME/jre/lib/ext/myLib.jar.
CTheJ AR fileis located at/foo/myLib.jar and aclasspath environment variable is set that includes /foo/myLib.jar/Paper.class.
DThe JAR fileis located at/foo/myLib.jar and a classpath environment variable is set that includes/foo/myLib.jar.
EThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-cp/foo/myLib.jar/Paper Book.java.
FThe JAR file is located at/foo/myLib.jar and the Book class is compiled using javac-classpath/foo/myLib.jar Book.java.
-
数组的长度可以通过以下哪个属性或方法得到?()
A、size
B、length
C、getSize()
D、getLength()
-
下面哪些类型实现了Comparable接口()
AInteger
Bdouble
CString
DObject
-
public class Demo{ public static void main(String[] args){ List al = new ArrayList(); al.add(“1”); al.add(“2”); al.add(“2”); al.add(“3”); System.out.println(al); } } 上述程序执行后的输出是哪项?()
A、 [1,2,3]
B、 [1,2,2,3]
C、 [1,2,3,3]
D、 [2,1,3,2]