Ask 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, which runs at the same time as the parentc) It terminates the process that calls it, because it calls exit () internally

+1
Answers (1)
  1. 13 April, 12:17
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers