JAVA Threads Quiz

JAVA Threads Quiz

University

8 Qs

quiz-placeholder

Similar activities

Android Fundamentals - Day 1: Java

Android Fundamentals - Day 1: Java

University - Professional Development

10 Qs

OPESSYS: Module 3 Quiz Game

OPESSYS: Module 3 Quiz Game

University

11 Qs

Tutorium1

Tutorium1

University

10 Qs

Java Internal-2

Java Internal-2

University

10 Qs

JAVA Quiz on 17-09-2021 (3rd hr)

JAVA Quiz on 17-09-2021 (3rd hr)

University

5 Qs

Java Prelab-IV

Java Prelab-IV

University

10 Qs

ROUND 3

ROUND 3

University

10 Qs

Internet and mobile programming 3

Internet and mobile programming 3

University

10 Qs

JAVA Threads Quiz

JAVA Threads Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Raju Amireddy

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is mean by Thread?

It is heavy weight process

It is light weight process

It is heavy weight and light weight process

None

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these method of Thread class is used to find out the priority given to a thread?

get()

ThreadPriority()

getPriority()

getThreadPriority()

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

  1. Which of these is not a Thread state?

  1. New

  1. Runnable

  1. sleep

  1. terminated

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the purpose of the wait() method in Java threads?

To pause the execution of a thread.

To terminate a thread.

To notify other threads to resume execution.

To release the lock held by the thread.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the maximum number of threads that can be created in a Java program?

There is no fixed limit.

It depends on the amount of available memory.

It depends on the number of CPU cores.

It is limited to 100 threads.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Thread Lifecycle contain How many states?

1

2

5

6

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A thread executing in the Java virtual machine is in _ state.

Blocked

Terminated

Waiting

Runnable

8.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A thread that has exited is in _state.



Waiting

Blocked

Terminated

Runnable

Discover more resources for Computers