Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Java\'s multithreading is platform a) dependent b) Independent c) none Java can

ID: 3539354 • Letter: J

Question

Java's multithreading is platform

a) dependent b) Independent c) none

Java can not run on windows


3.1 as Windows 3.1 does not support multi-threading.

a) True b) False

Method isAlive() returns true if a method stop has been called to temporarily stop the thread from execution.

a) True b) False

Which one of the following methods keeps the Thread t in run state ?

a) t.start() b) t.run() c) t.setRun( ) d) t.stop e) when a thread is instantiated, it comes automatically into run state f) none

Both the methods sleep and join throws InterruptedException.

a) True b) False

If the argument passed to the thread%u2019s method setPriority( ) is not in the range of 1 to 10 (both inclusive), the method throws

a) ArithmeticException b) IllegalArgumentException c) IllegalValueException d) none

Explanation / Answer

1. Java's multithreading is platform a) dependent ======================================================================================================================= 2. Java can not run on windows 3.1 as Windows 3.1 does not support multi-threading. b) False ======================================================================================================================= 3. Method isAlive() returns true if a method stop has been called to temporarily stop the thread from execution. b) False ========================================================================================================================4. Which one of the following methods keeps the Thread t in run state ? a) t.start() ======================================================================================================================== 5. Both the methods sleep and join throws InterruptedException. b) False ======================================================================================================================= 6. If the argument passed to the thread

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote