Exam 22: Concurrency
Exam 1: Introduction to Computers, the Internet and Java40 Questions
Exam 2: Introduction to Java Applications; Inputoutput and Operators33 Questions
Exam 3: Introduction to Classes, Objects, Methods and Strings32 Questions
Exam 4: Control Statements: Assignment, and Operators39 Questions
Exam 5: Control Statements: Logical Operators26 Questions
Exam 6: Methods: a Deeper Look38 Questions
Exam 7: Arrays and Arraylists46 Questions
Exam 8: Classes and Objects: a Deeper Look28 Questions
Exam 9: Object-Oriented Programming: Inheritance20 Questions
Exam 10: Object-Oriented Programming: Polymorphism and Interfaces34 Questions
Exam 11: Exception Handling: a Deeper Look27 Questions
Exam 12: Javafx Graphical User Interfaces22 Questions
Exam 13: Javafx Gui20 Questions
Exam 14: Strings, Characters and Regular Expressions26 Questions
Exam 15: Files, Inputoutput Streams, Nio and Xml Serialization30 Questions
Exam 16: Generic Collections36 Questions
Exam 17: Lambdas and Streams67 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods: a Deeper Look13 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: Concurrency54 Questions
Exam 23: Accessing Databases With Jdbc34 Questions
Exam 24: Swing Gui Components78 Questions
Exam 25: Graphics and Java 2d19 Questions
Exam 26: Networking13 Questions
Exam 27: Java Persistence Api Jpa16 Questions
Exam 28: Javaserver Faces Web Apps15 Questions
Exam 29: Javaserver Faces Web Apps7 Questions
Exam 30: Swing Gui Components26 Questions
Select questions type
In a producer/consumer relationship, when a consumer finds the buffer empty or finds that the previous data has already been read, the consumer should call __________.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
B
Which of the following statements is false?
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
D
To determine the difference between two Instants, use class Duration's static method ________, which returns a Duration object containing the time difference.
(Multiple Choice)
4.9/5
(30)
Which one of the following statements is true with regard to a producer/consumer relationship with one producer and one consumer?
(Multiple Choice)
4.8/5
(26)
If a thread calls __________, then every thread waiting for the object becomes eligible to acquire the lock.
(Multiple Choice)
4.8/5
(35)
Which of the following is true for a correct producer/consumer relationship with one producer, one consumer, and a 5-cell buffer?
(Multiple Choice)
5.0/5
(34)
Duration method ________ returns the Duration as a long value in milliseconds.
(Multiple Choice)
4.8/5
(36)
NumberFormat method ________ returns a String representation of its argument in the specified numeric format.
(Multiple Choice)
4.7/5
(40)
An ExecutorService object is created by calling a static method of which class?
(Multiple Choice)
4.8/5
(30)
The Callable interface (of package java.util.concurrent) declares a single method named call that allows a task to return a value.
(Multiple Choice)
4.8/5
(36)
Arrays static method ________ applies a BinaryOperator to the current and previous array elements and stores the result in the current element.
(Multiple Choice)
4.9/5
(29)
The________ handles interactions with the application's controls, such as rendering controls or processing user actions like mouse clicks.
(Multiple Choice)
4.8/5
(36)
With timeslicing, each thread is given a limited amount of time, called a __________, to execute on a processor.
(Multiple Choice)
4.8/5
(44)
Showing 1 - 20 of 54
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)