default
NULL
String
throws
long
You are writing a JSP that includes scriptlet code to declare a List variable and initializes that variable to anArrayList object. Which two JSP code snippets can you use to import these list types?()A、<%! import java.util.*; %>B、<%! import java.util.List;import java.util.ArrayList; %>C、<%@ page import=’java.util.List’import=’java.util.ArrayList’ %>D、<%@ import types=’java.util.List’types=’java.util.ArrayList’ %>E、<%@ page import=’java.util.List,java.util.ArrayList’ %>F、<%@ import types=’java.util.List,java.util.ArrayList’ %>
点击查看答案
Which interface does java.util.Hashtable implement?() A、 java.util.MapB、 java.util.ListC、 java.util.HashableD、 java.util.Collection
public class Foo { static int[] a; static { a[0]=2; } public static void main( String[] args) {} } Which exception or error will be thrown when a programmer attempts to run this code?() A、 java.lang. StackOverflowErrorB、 java.lang.IllegalStateExceptionC、 java.lang.ExceptionlnlnitializerErrorD、 java.lang.ArraylndexOutOfBoundsException
Which two interfaces provide the capability to store objects using a key-value pair?()A、 Java.util.Map.B、 Java.util.Set.C、 Java.util.List.D、 Java.util.StoredSet.E、 Java.util.StoredMap.F、 Java.util.Collection.
Which statements about inheritance are true?() A、 In Java programming language only allows single inheritance.B、 In Java programming language allows a class to implement only one interface.C、 In Java programming language a class cannot extend a class and implement a interface together.D、 In Java programming language single inheritance makes code more reliable.
Which are not Java keywords? () A、 TRUEB、 sizeofC、 constD、 superE、 void
Which three data sources integrations are provided by Coherence out of the box ? ()A、 TopLink Grid and TopLink EssentialsB、 Java Persistence API (JPA)C、 Open Database Connectivity (ODBC)D、 FileSystemE、 Java Database Connectivity (JDBC)