wood burning stoves*
The moose likes Java in General and the fly likes exit java statement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "exit java statement" Watch "exit java statement" New topic
Author

exit java statement

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
--------------------------------------------------------------------------------
Hello
I know that C++ uses the exit(0) and exit(-1) statement. Does Java uses something similar?
Thanks a lot
kim jungil
Greenhorn

Joined: Sep 27, 2001
Posts: 27
Originally posted by Mike Shn:

System.exit(0);
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Amazing you got the same answer in this forum as the beginner forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exit java statement
 
Similar Threads
Endless Loop
exit statement in java
header files in Java?
JVM will not exit?
Break Statement