ExecutorService method ________ executes a Callable passed in as its argument. Method submit returns an object of type Future (of package java.util.concurrent) that represents the future result of the executing Callable.

a. submit
b. execute
c. future
d. perform

a. submit

Computer Science & Information Technology

You might also like to view...

Answer the following statements true (T) or false (F)

1. Java source code that contains a class with an inner class, when compiled, will produce a separate .class file for the inner class. 2. An ArrayList object has a fixed size. 3. You can use any primitive type as the base type of an ArrayList class. 4. ArrayList objects do not have the array square-bracket notation.

Computer Science & Information Technology

Write a Java statement to recover the unused memory in the resulting vector in number 4 above

What will be an ideal response?

Computer Science & Information Technology