Java thread - MCQ

Quiz
•
Computers
•
University
•
Hard

Mohamed Ibrahim
Used 312+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) In java multi-threading, a thread can be created by
Extending Thread class
Implementing Runnable interface
Using both
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) Which method is called internally by Thread start() method?
execute()
run()
launch()
main()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) What is maximum thread priority in Java
10
12
5
8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) Which method must be implemented by a Java thread?
run()
execute()
start()
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) Number of threads in below java program is
public class ThreadExtended extends Thread {
public void run() {
System.out.println("\nThread is running now\n");
}
public static void main(String[] args) {
ThreadExtended threadE = new ThreadExtended();
threadE.start();
}
}
0
1
2
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) Execution of a java thread begins on which method call?
Start ()
Run ()
Execute ()
Launch ()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q) How many ways a thread can be created in Java multithreading?
1
2
3
4
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
OS quiz

Quiz
•
University
20 questions
Revisão 1ª AV - Sistemas Operacionais

Quiz
•
University
15 questions
OS-CH4-Thread and Concurrency

Quiz
•
University
20 questions
JDBC

Quiz
•
University
20 questions
Quiz 1 PBO

Quiz
•
University
15 questions
Java

Quiz
•
University
20 questions
Technical Quiz R1

Quiz
•
University
15 questions
MultiThreading Quiz

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade