Home / CSE MCQs / JAVA MCQs :: Threads - Java

CSE MCQs :: JAVA MCQs

  1. What will happen if two thread of same priority are called to be processed simultaneously?
  2. A.
    Any one will be executed first lexographically
    B.
    Both of them will be executed simultaneously
    C.
    None of them will be executed
    D.
    It is dependent on the operating system.

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of these statements is incorrect?
  4. A.
    By multithreading CPU's idle time is minimized, and we can take maximum use of it.
    B.
    By multitasking CPU's idle time is minimized, and we can take maximum use of it.
    C.
    Two thread in Java can have same priority
    D.
    A thread can exist only in two states, running and blocked.

    View Answer

    Workspace

    Discuss Discuss in Forum