run
import
default
implement
Which two elements of the Java Enterprise Application Archive are required?()A、EJB Archive B、Deployment DescriptorC、META-INF sub directoryD、Resource Adapter archiveE、Java library
点击查看答案
public class test { public static void main(String [] a) { assert a.length == 1; } } Which two will produce an AssertionError?()A、 java testB、 java -ea testC、 java test file1D、 java -ea test file1E、 java -ea test file1 file2F、 java -ea:test test file1
When comparing java.io.BufferedWriter to java.io.FileWriter, which capability exists as a method in only one of the two?() A、 closing the streamB、 flushing the streamC、 writing to the streamD、 marking a location in the streamE、 writing a line separator to the stream
What protection method is used in 4F MS-SPRing networks?()A、 Each fiber has half of its capacity reserved for protection.B、 Two fibers carry their full capacities while the other two fibers are reserved for protection.C、 The signal is sent simultaneously in both directions around the ring. The receiver determines which fiber to listen to based on signal quality.D、 The signal is sent simultaneously in both directions around the ring. The transmitter determines which fiber has the working bit set for the receiver to acknowledge.
Given in a single JSP page: Which two are true?()A、The prefix ’java’ is reserved.B、The URI ’myTags’ must be properly mapped to a TLD file by the web container.C、A translation error occurs because the prefix is considered identical by the web container.D、For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.
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 two can be used to create a new Thread? ()A、 Extend java.lang.Thread and override the run method.B、 Extend java.lang.Runnable and override the start method.C、 Implement java.lang.thread and implement the run method.D、 Implement java.lang.Runnable and implement the run method.E、 Implement java.lang.Thread and implement the start method.