Chapter 23: Problem 2
(Advanced Optional Sections) Fill in the blanks in each of the following statements: a) Method \(\quad\) of class Condition moves a single thread in an object's waiting state to the runnable state. b) Method \(\quad\) of class Condition moves every thread in an object's waiting state to the runnable state. c) \(A\) thread can call method \(\quad\) on a Condition object to release the associated Lock and place that thread in the ___ state. d) Class \(\quad\) implements the BlockingQueue interface using an array. e) Class Instant's static method ___ gets the current time. f) Duration method ___ returns the Duration as a long value milliseconds. g) NumberFormat static method ___ returns a NumberFormat that's used to format a number as a percentage. h) NumberFormat method __ returns a String representation of its argument in the specified numeric format. i) Arrays static method ___ fills an array with values produced by a generator function. j) Arrays static method \(\quad\) applies a BinaryOperator to the current and previous array elements and stores the result in the current element. k) To obtain a parallel stream, simply invoke method \(\quad\) on an existing stream. l) Among its many features a CompletableFuture enables you to asynchronously execute ___ that perform tasks or __ that return values.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.