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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.