Top 100+ Advanced Multithreading Interview Questions 2019-2020 - 4
Question: 16
What is Future Task Class?
Future Task is the base implementation class of Future interface and we can use it with Executors for asynchronous processing. Most of the time we don’t need to use FutureTask class but it comes real handy if we want to override some of the methods of Future interface and want to keep most of the base implementation.
Question: 17
What is atomic operation?
Atomic operations are performed in a single unit of task without interference from other operations. Atomic operations are necessity in multithreaded environment to avoid data inconsistency.
Question: 18
What object does static synchronized methods use for locking?
Static synchronized methods synchronize on the class object (this.getClass()) of the class.
Question: 19
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
When a task’s interrupt() method is executed, the task enters the ready state. The next time the task enters the running state, an InterruptedException is thrown.
- Java Multithreading Interview Questions and Answers for Freshers
- Top 100+ Java Multithreading Interview Questions and Answers
- Top 100+ Advanced Multithreading Interview Questions 2019-2020
- Java Interview Questions and Answers for Experienced Professionals
- Java 9 Interview Questions for 1,2,3,4,5,6,7,8,9,10 Years Experience
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
Dairy Technology MCQ Questions and Answers More
Agricultural Engineering MCQ Questions & Answers Pdf More
Biology Objective Type Questions and Answers More
Top 50+ Double Synonyms Questions and Answers More
Comparison of Ranks Verbal Reasoning Questions and Answers More
C# Classes and Objects Programming Interview Questions More
1000+ Electrolysis and Storage Batteries Objective Questions & Answers More