Top 100+ Java Multithreading Interview Questions and Answers - 2
Question: 6
What state is a thread in when it is executing?
An executing thread is in the running state.
Question: 7
What is the difference between yielding and sleeping?
When a task invokes its yield() method, it returns to the ready state.
When a task invokes its sleep() method, it returns to the waiting state.
Question: 8
Can a method be static and synchronized?
No a static method can’t be synchronized.
Question: 9
How can multiple threads be controlled simultaneously?
If you create threads in a ThreadGroup object, they may be controlled simultaneously with the member function of said object.
Question: 10
What’s new with the stop(), suspend() and resume() method?
The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
Related Questions
- 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
Recent Articles
ECE Interview Questions and Answers Pdf More
Control System Questions and Answers Pdf More
GATE Analog Electronics MCQ Questions and Answers More
Analog Electronics Questions Pdf Download with Answers More
Engineering Materials Science MCQ Questions & Answers More
Material Science MCQ Questions Pdf Download More
May-05-2024
| Meritnotes
Control System Questions and Answers Pdf More
May-04-2024
| Meritnotes
GATE Analog Electronics MCQ Questions and Answers More
May-03-2024
| Meritnotes
Analog Electronics Questions Pdf Download with Answers More
May-02-2024
| Meritnotes
Engineering Materials Science MCQ Questions & Answers More
May-01-2024
| Meritnotes
Material Science MCQ Questions Pdf Download More
April-30-2024
| Meritnotes
Trending Posts
English Vocabulary Quiz with Answers More
Top 50+ Cell Biology and Molecular Biology Questions & Answers Pdf More
Computer Knowledge Questions and Answers for Interview More
Indian National Movement General Knowledge Questions and Answers More
7000+ World Gk Questions and Answers 2024-2025 Pdf More
1000+ Sequence Puzzles for Kids with Answers More
November-30-2019
| Meritnotes
Top 50+ Cell Biology and Molecular Biology Questions & Answers Pdf More
August-28-2019
| Meritnotes
Computer Knowledge Questions and Answers for Interview More
August-28-2019
| Meritnotes
Indian National Movement General Knowledge Questions and Answers More
August-28-2019
| Meritnotes
7000+ World Gk Questions and Answers 2024-2025 Pdf More
January-14-2024
| Meritnotes
1000+ Sequence Puzzles for Kids with Answers More
November-24-2022
| Meritnotes