All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Threads Questions And Answers

Here you can find Threads Questions and Answers.

Why Threads Questions and Answers Required?

In this Threads Questions and Answers section you can learn and practice Threads Questions and Answers to improve your skills in order to face technical inerview conducted by organisations. By Practicing these interview questions, you can easily crack any Exams interview.

Where can I get Threads Questions and Answers?

AllIndiaExams provides you lots Threads Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Threads Questions and Answers as PDF files and eBooks.

How to solve these Threads Questions and Answers?

You no need to worry, we have given lots of Threads Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams interview.

Threads - Java Multiple Choice Questions and Answers

1. Which of these method can be used to make the main thread to be executed last among all the threads?

Threads - Java Multiple Choice Questions and Answers

2. Which of these method is used to find out that a thread is still running or not?

Threads - Java Multiple Choice Questions and Answers

3. What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?

Threads - Java Multiple Choice Questions and Answers

4. Which of these method waits for the thread to treminate?

Threads - Java Multiple Choice Questions and Answers

5. Which of these method is used to explicitly set the priority of a thread?

Threads - Java Multiple Choice Questions and Answers

6. What is synchronization in reference to a thread?

Threads - Java Multiple Choice Questions and Answers

7. Which of these method is used to implement Runnable interface?

Threads - Java Multiple Choice Questions and Answers

8. Which of these interface is implemented by Thread class?

Threads - Java Multiple Choice Questions and Answers

9. Which of these method is used to begin the execution of a thread?

Threads - Java Multiple Choice Questions and Answers

10. Which of these method waits for the thread to terminate?

Home EngineeringComputer Science & EngineeringJava Questions and AnswersThreads

Threads - Java Multiple Choice Questions and Answers

This is the java programming questions and answers section on "Java Threads" with the explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Java Threads Questions

Online Test Name Java Threads
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 22
1. Which of these method can be used to make the main thread to be executed last among all the threads?
  • A. stop()
  • B. sleep()
  • C. join()
  • D. call()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

By calling sleep() within main(), with long enough delay to ensure that all child threads terminate prior to the main thread.

Workspace

Report Error


2. Which of these method is used to find out that a thread is still running or not?
  • A. run()
  • B. Alive()
  • C. isAlive()
  • D. checkRun()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

The isAlive( ) method returns true if the thread upon which it is called is still running. It returns false otherwise.

Workspace

Report Error


3. What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?
  • A. 0 & 256
  • B. 0 & 1
  • C. 1 & 10
  • D. 1 & 256
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

1 & 10

Workspace

Report Error


4. Which of these method waits for the thread to treminate?
  • A. sleep()
  • B. isAlive()
  • C. join()
  • D. stop()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

join()

Workspace

Report Error


5. Which of these method is used to explicitly set the priority of a thread?
  • A. set()
  • B. make()
  • C. setPriority()
  • D. makePriority()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

The default value of priority given to a thread is 5 but we can explicitly change that value between the permitted values 1 & 10, this is done by using the method setPriority().

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »

Related Topics:

  • Serialization
  • Packages
  • Collections
  • java.util Package
  • Input Output Streams
  • java.lang Package
  • java.io Package
  • Operators
  • Arrays
  • Data Types

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Mock Tests

  • CAT Mock Test
  • SSC Mock Test
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test
  • RRB Mock Test
  • RBI Mock Test
  • Free SBI Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy