Multithreading

Multithreading

Professional Development

15 Qs

quiz-placeholder

Similar activities

Kuis Pelatihan API Kutim By GIZ

Kuis Pelatihan API Kutim By GIZ

University - Professional Development

20 Qs

Glovo Challenge

Glovo Challenge

Professional Development

20 Qs

Android Fundamentals - Day 2 : Android Basics

Android Fundamentals - Day 2 : Android Basics

University - Professional Development

10 Qs

Java Selenium WebDriver

Java Selenium WebDriver

Professional Development

12 Qs

Day 3

Day 3

Professional Development

10 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

Mastering Object Oriented Programming in Java

Mastering Object Oriented Programming in Java

Professional Development

20 Qs

java

java

Professional Development

10 Qs

Multithreading

Multithreading

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Ms STAFF

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to start a thread in Java?

run()

begin()

start()

execute()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is called when a thread is started?


start()

run()

execute()

init()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to pause the execution of a thread for a specified time?


sleep()

wait()

yield()

join()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will cause a thread to release the lock it holds?


sleep()

yield()

wait()

run()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you call start() on a thread object that has already been started?

It runs normally

It does nothing

It throws IllegalThreadStateException

It calls run() again

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which state is a thread in when it is waiting to acquire a lock held by another thread?

RUNNABLE

WAITING

BLOCKED

NEW

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not a valid thread state?


NEW

RUNNABLE

DEAD

EXECUTING

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?