1.

Which of the following method of Process class can terminate a process?(a) void kill()(b) void destroy()(c) void terminate()(d) void exit()This question was addressed to me in exam.My doubt is from Java.lang in division Exploring java.lang & java.io of Java

Answer»

Correct answer is (b) void destroy()

To EXPLAIN I WOULD say: Kills the subprocess. The subprocess REPRESENTED by this Process OBJECT is forcibly terminated.



Discussion

No Comment Found

Related InterviewSolutions