-
-
-
-
-
-
-
-
-
-
-
-
What is the signature of the constructor of a thread class?
A) Thread(Runnable threadob,String threadName)B) Thread(String threadob, Runnable threadName)C) Thread(Runnable threadob,ArrayList threadName)D) Thread(ArrayList threadob,String threadName)
-
Which of the following holds true for the daemon thread, in java runtime,
A) Daemon thread is a low priority threadB) It runs intermittently in the backgroundC) It does the garbage collection operation for the java runtime system.D) All of the above
-
What are all the methods used for Inter Thread communication and what is the class in which these methods are defined?
A) wait(),Object classB) notify(),Object classC) notifyall(),Object classD) wait(), Thread class
-
What are all the values for the following level, respectively?max-priority min-prioritynormal-priority
A) 10,1,5B) 1,10,15C) 10,10,5D) 10,5,1
-
What are all the four states associated in the thread?
A) newB) runnableC) blockedD) dead
-
-
-
-
What is meant by timeslicing or time sharing?
A) Timeslicing is the method of de-allocating CPU time to individual threads in a priority schedule.B) Timeslicing is the method of allocating CPU space to individual threads in a priority schedule.C) Timeslicing is the method of allocating CPU time to individual threads in a priority schedule.D) Timeslicing is the method of de-allocating CPU space to individual threads in a priority schedule.
Java Interview Questions
Ans