You must log in or register to comment.
Linux: kill
Also Linux: zombies, orphans
Daemons
C++ is actually std::exit(), exit() is C.
Fun fact: there’s a shorter way to throw a NullPointerException:
throw null;
Because
throw
throws a NPE if the parameter is nullI have never used
System.exit()
orsys.exit()
. What is a use case where you would call these explicitly?Applications where you aren’t using some sort of framework. Usually MVC or other frameworks would handle this or are designed to continuously run.
I love die()! but PHP has exit(), too, and it does the same thing