How many threads can be executed at a time?
- Only one thread
- Multiple threads
- Only main (main() method) thread
- Two threads
Answer
b. Multiple threads
Explanation:
In Java, multiple threads can be executed at the same time. A Java standalone application always starts with a single thread known as the main thread that is associated with the main() method.
In the operating system, only one thread is executed at a time.
Hence, the correct answer is an option (b).
Comments
Post a Comment