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
15 questions
Brewing JavaFX Quiz

Quiz
•
University
15 questions
OS-4

Quiz
•
University
15 questions
Cryptec Quiz Round 2

Quiz
•
University
15 questions
Slide 4 : Introduction to Java Execution Environment Quiz

Quiz
•
University
20 questions
Java, part I

Quiz
•
11th Grade - University
15 questions
GIOS P2L3

Quiz
•
University
20 questions
UTS Teori PJR 2024

Quiz
•
University
20 questions
TEST FINAL - Lenguaje de Programación I

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University