Ask Question
2 August, 07:33

Which one of these choices best describes what exec () does:a) It replaces the current process with a new oneb) It executes a new process, which runs at the same time as the parentc) It terminates the process that calls it, because it calls exit () internally

+4
Answers (1)
  1. 2 August, 10:36
    0
    Option b It executes a new process, which runs at the same time as the parent

    Explanation:

    The exec is one of the Java Runtime methods which is used to create a new process and run it as an separate process. Exec method executes the string command that we place inside the bracket. For example,

    Process proc = Runtime. getRuntime (). exec ("Notepad. exe");

    The statement above offers a convenient way to open the another computer software such as Notepad when running the program.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which one of these choices best describes what exec () does:a) It replaces the current process with a new oneb) It executes a new process, ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers