Ask Question
28 April, 21:53

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. 29 April, 00:34
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers