adplus-dvertising
frame-decoration

Question

Which function should be used to exit from the program that is provided by System class?

a.

exit(int);

b.

gc();

c.

terminate();

d.

halt();

Answer: (a).exit(int);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which function should be used to exit from the program that is provided by System class?