Search This Blog

Thursday, September 4, 2025

Java Process class

 The Java Process class provides methods for:

  • performing input
  • performing output
  • waiting for the process to complete
  • checking the exit status of the process, and
  • destroying the process
If you want to terminate a process and its subprocesses using a method of the Process class, which of the following methods will you use?

a) void exit()
b) int killforcibly()
c) int destroy()
d) void forcestop()
e) void destroyforcibly()

Created by Nancy K.A.N.
@11:55 04-Sept-2025


No comments:

Post a Comment