JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
Java Concurrency interview questions
Java Concurrency interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. When we start up the JVM what kind of thread is created?
A. A begin thread
B. A daemon thread
C. A start thread
D. A user thread
Show Correct Answer
Correct Answer is :
A user thread
2. Which of the following methods releases an object's lock?
A. join()
B. notify()
C. sleep()
D. wait()
Show Correct Answer
Correct Answer is :
wait()
3. How does a thread know which run() method to call?
A. By the class
B. By the arguments passed to the run() method
C. By the constructor
D. By the start() method
Show Correct Answer
Correct Answer is :
By the constructor
4. How can we find out which thread is active in the run() method at any given time?
A. Using the this keyword
B. We cannot find out this information
C. Using the getName() method
D. Using the static currentThread() method
Show Correct Answer
Correct Answer is :
Using the static currentThread() method
5. What should we do with the run() method of the Runnable interface?
A. use it to run threads
B. call one of its overloaded methods
C. override it
D. ignore it
Show Correct Answer
Correct Answer is :
override it
Similar Interview Questions
Search for latest jobs
Find Jobs