Personally I prefer throw new nullpointerexception
throw new nullpointerexception
You're viewing a single thread.
C++ is actually std::exit(), exit() is C.