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

1. Streams are easy to parallelize, enabling programs to benefit from enhanced perfor-
mance on multi-core systems.
2. Interface Supplier, like interface Callable, is a functional interface with a single meth- od that receives no arguments and returns a result.
3. CompletableFuture static method runAsync asynchronously executes a Supplier task that returns a value.
4. CompletableFuture static method supplyAsync asynchronously executes a Runnable
task that does not return a result.
5. Method sleep does not consume processor time while a thread sleeps.


1. True.
2. True.
3. False. The method that asynchronously executes a Supplier is supplyAsync. .
4. False. The method that asynchronously executes a Runnable is runAsync
5. True.

Computer Science & Information Technology

You might also like to view...

Which of the following is an adware product?

A) Gator B) Red Sheriff C) Spy Sweeper D) Net Bus

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 4-1Savannah is learning about different types of storage devices. She has many files on her computer. Savannah is going on vacation and wants to take some files with her. She is concerned because she is traveling to a hot climate and knows that some storage devices can be damaged by high heat. Savannah should NOT take her files with her on a(n) ____ storage medium because it is susceptible to high heat.

A. magnetic B. optical C. solid state D. computer

Computer Science & Information Technology

Wireless cards are available in only one form factor: mini-PCIe

Indicate whether the statement is true or false

Computer Science & Information Technology

If you want to modify the color of a margin guide, which of the following do you use?

A. A menu command B. A preference from the Preferences dialog box C. The Columns panel D. The Pages panel

Computer Science & Information Technology